зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1337826 - Do not use sticky connection if it is pipeline. r=mcmanus
This commit is contained in:
Родитель
66be2f31cc
Коммит
7fcc6ce47a
|
@ -6870,6 +6870,14 @@ nsHttpChannel::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult st
|
|||
LOG((" connection is not persistent, not reusing it"));
|
||||
conn = nullptr;
|
||||
}
|
||||
// We do not use a sticky connection in case of a nsHttpPipeline as
|
||||
// well (see bug 1337826). This is a quick fix, because
|
||||
// nsHttpPipeline is turned off by default.
|
||||
RefPtr<nsAHttpTransaction> tranConn = do_QueryObject(conn);
|
||||
if (tranConn && tranConn->QueryPipeline()) {
|
||||
LOG(("Do not use this connection, it is a nsHttpPipeline."));
|
||||
conn = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
RefPtr<nsAHttpConnection> stickyConn;
|
||||
|
|
Загрузка…
Ссылка в новой задаче