[Bug 385049] fix issue with pipelined connections when switching protocols

This commit is contained in:
Jesse McConnell 2012-08-23 15:11:09 -05:00
parent 74e6be5097
commit 5761c8201b
1 changed files with 2 additions and 2 deletions

View File

@ -208,12 +208,12 @@ public class AsyncHttpConnection extends AbstractHttpConnection implements Async
{
Connection switched=exchange.onSwitchProtocol(_endp);
if (switched!=null)
connection=switched;
{
// switched protocol!
_pipeline = null;
if (_pipeline!=null)
{
_destination.send(_pipeline);
}
_pipeline = null;
connection=switched;