394370 392237 reverted Improved handling of SPDY async send. Added simple NPE protection to further investigate problem
This commit is contained in:
parent
b5c6555a4a
commit
62e033fcd0
|
@ -117,20 +117,16 @@ public class HttpTransportOverSPDY implements HttpTransport
|
|||
reply(stream, new ReplyInfo(headers, close));
|
||||
}
|
||||
|
||||
if (stream.isClosed())
|
||||
{
|
||||
callback.failed(context,new EofException());
|
||||
}
|
||||
else if (hasContent)
|
||||
|
||||
if ((hasContent || lastContent ) && !stream.isClosed() )
|
||||
{
|
||||
if (content==null)
|
||||
content=BufferUtil.EMPTY_BUFFER;
|
||||
stream.data(new ByteBufferDataInfo(content, lastContent),endPoint.getIdleTimeout(),TimeUnit.MILLISECONDS,context,callback);
|
||||
}
|
||||
else if (lastContent)
|
||||
{
|
||||
stream.data(new ByteBufferDataInfo(BufferUtil.EMPTY_BUFFER, lastContent),endPoint.getIdleTimeout(),TimeUnit.MILLISECONDS,context,callback);
|
||||
}
|
||||
else
|
||||
callback.completed(context);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue