[Bug 385049] fix issue with pipelined connections when switching protocols
This commit is contained in:
parent
74e6be5097
commit
5761c8201b
|
@ -208,12 +208,12 @@ public class AsyncHttpConnection extends AbstractHttpConnection implements Async
|
||||||
{
|
{
|
||||||
Connection switched=exchange.onSwitchProtocol(_endp);
|
Connection switched=exchange.onSwitchProtocol(_endp);
|
||||||
if (switched!=null)
|
if (switched!=null)
|
||||||
connection=switched;
|
|
||||||
{
|
{
|
||||||
// switched protocol!
|
// switched protocol!
|
||||||
_pipeline = null;
|
|
||||||
if (_pipeline!=null)
|
if (_pipeline!=null)
|
||||||
|
{
|
||||||
_destination.send(_pipeline);
|
_destination.send(_pipeline);
|
||||||
|
}
|
||||||
_pipeline = null;
|
_pipeline = null;
|
||||||
|
|
||||||
connection=switched;
|
connection=switched;
|
||||||
|
|
Loading…
Reference in New Issue