diff --git a/mozilla/netwerk/protocol/http/src/nsHttpHandler.cpp b/mozilla/netwerk/protocol/http/src/nsHttpHandler.cpp index 98216e100ab..7cb962c1422 100644 --- a/mozilla/netwerk/protocol/http/src/nsHttpHandler.cpp +++ b/mozilla/netwerk/protocol/http/src/nsHttpHandler.cpp @@ -2081,6 +2081,13 @@ nsHttpHandler::Observe(nsISupports *subject, if (mAuthCache) mAuthCache->ClearAll(); + // kill mIdleConnections - these sockets could be holding onto other resources + // that need to be freed. + { + nsAutoLock lock(mConnectionLock); + DropConnections(mIdleConnections); + } + // need to reset the session start time since cache validation may // depend on this value. mSessionStartTime = NowInSeconds();