434074 Avoid double dispatch by returning false from messageComplete

This commit is contained in:
Greg Wilkins 2014-05-05 19:49:58 +02:00
parent 894fb6bfc0
commit 0abda0f35a
4 changed files with 15 additions and 2 deletions

View File

@ -478,6 +478,14 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
{
getEndPoint().shutdownOutput();
}
@Override
public boolean messageComplete()
{
super.messageComplete();
return false;
}
}
private class CommitCallback extends IteratingCallback

View File

@ -93,7 +93,6 @@ public class SlowClientWithPipelinedRequestTest
throws IOException, ServletException
{
baseRequest.setHandled(true);
System.err.println("target = " + target);
if ("/content".equals(target))
{
// We simulate what the DefaultServlet does, bypassing the blocking

View File

@ -73,7 +73,6 @@ public class ContextHandlerGetResourceTest
other.createNewFile();
File transit = new File(docroot.getParentFile(),"transit");
System.err.println("transit "+transit);
transit.delete();
if (OS.IS_UNIX)

View File

@ -156,6 +156,13 @@ public class HttpChannelOverSPDY extends HttpChannel<DataInfo>
if (dispatch)
dispatch();
}
@Override
public boolean messageComplete()
{
super.messageComplete();
return false;
}
private boolean performBeginRequest(Fields headers)
{