Shut down all sockets in http's keepalive/idle list when the SESSION_LOGOUT event happens. This ensures that we don't leak NSS resources associated with SSL sockets. Bug 125561, r=ccarlen, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@119473 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user