jetty-9 TODOs

This commit is contained in:
Greg Wilkins 2012-08-30 08:44:19 +10:00
parent 8c6ad12088
commit 72827aa44d
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,7 @@ public class HttpTransportOverSPDY implements HttpTransport
headers.put(HTTPSPDYHeader.STATUS.name(version), httpStatus.toString());
LOG.debug("HTTP < {} {}", httpVersion, httpStatus);
// TODO merge the two Field classes into one
HttpFields fields = info.getHttpFields();
if (fields != null)
{
@ -107,12 +108,14 @@ public class HttpTransportOverSPDY implements HttpTransport
public void send(ByteBuffer content, boolean lastContent) throws IOException
{
// Guard against a last 0 bytes write
// TODO work out if we can avoid double calls for lastContent==true
if (stream.isClosed() && BufferUtil.isEmpty(content) && lastContent)
return;
stream.data(new ByteBufferDataInfo(content, lastContent));
}
@Override
// TODO move to channel ?
public void completed()
{
LOG.debug("completed");