mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 782570 - nsHttpPipeline::CancelTransaction force connection close if no sub transactions are left r=jduell
This commit is contained in:
parent
0fa7382bf9
commit
9cc369b11d
@ -238,8 +238,7 @@ nsHttpPipeline::CloseTransaction(nsAHttpTransaction *trans, nsresult reason)
|
||||
}
|
||||
|
||||
// Marking this connection as non-reusable prevents other items from being
|
||||
// added to it and causes it to be torn down soon. Don't tear it down yet
|
||||
// as that would prevent Response(0) from being processed.
|
||||
// added to it and causes it to be torn down soon.
|
||||
DontReuse();
|
||||
|
||||
trans->Close(reason);
|
||||
@ -249,6 +248,11 @@ nsHttpPipeline::CloseTransaction(nsAHttpTransaction *trans, nsresult reason)
|
||||
// reschedule anything from this pipeline onto a different connection
|
||||
CancelPipeline(reason);
|
||||
}
|
||||
|
||||
// If all the transactions have been removed then we can close the connection
|
||||
// right away.
|
||||
if (!mRequestQ.Length() && !mResponseQ.Length() && mConnection)
|
||||
mConnection->CloseTransaction(this, reason);
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
Loading…
Reference in New Issue
Block a user