Bug 1337826 - Do not use sticky connection if it is pipeline. r=mcmanus

This commit is contained in:
Dragana Damjanovic 2017-02-14 10:46:00 -05:00
Родитель 66be2f31cc
Коммит 7fcc6ce47a
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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;