mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 767512 - Fix connection pressure for non-SSL CONNECT. r=mcmanus
This commit is contained in:
parent
4c7cdee822
commit
9392a5a0d0
@ -1379,7 +1379,7 @@ nsHttpConnectionMgr::IsUnderPressure(nsConnectionEntry *ent,
|
||||
// favor existing pipelines over more parallelism so as to reserve any
|
||||
// unused parallel connections for types that don't have existing pipelines.
|
||||
//
|
||||
// The defintion of connection pressure is a pretty liberal one here - that
|
||||
// The definition of connection pressure is a pretty liberal one here - that
|
||||
// is why we are using the more restrictive maxPersist* counters.
|
||||
//
|
||||
// Pipelines are also favored when the requested classification is already
|
||||
@ -1389,7 +1389,7 @@ nsHttpConnectionMgr::IsUnderPressure(nsConnectionEntry *ent,
|
||||
|
||||
PRInt32 currentConns = ent->mActiveConns.Length();
|
||||
PRInt32 maxConns =
|
||||
(ent->mConnInfo->UsingHttpProxy() && !ent->mConnInfo->UsingSSL()) ?
|
||||
(ent->mConnInfo->UsingHttpProxy() && !ent->mConnInfo->UsingConnect()) ?
|
||||
mMaxPersistConnsPerProxy : mMaxPersistConnsPerHost;
|
||||
|
||||
// Leave room for at least 3 distinct types to operate concurrently,
|
||||
|
Loading…
Reference in New Issue
Block a user