From 9392a5a0d0944b902b8f31348c3885261904949c Mon Sep 17 00:00:00 2001 From: Jason Duell Date: Mon, 25 Jun 2012 12:48:49 -0700 Subject: [PATCH] Bug 767512 - Fix connection pressure for non-SSL CONNECT. r=mcmanus --- netwerk/protocol/http/nsHttpConnectionMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netwerk/protocol/http/nsHttpConnectionMgr.cpp b/netwerk/protocol/http/nsHttpConnectionMgr.cpp index c299c2be5326..e68fde503bf7 100644 --- a/netwerk/protocol/http/nsHttpConnectionMgr.cpp +++ b/netwerk/protocol/http/nsHttpConnectionMgr.cpp @@ -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,