зеркало из https://github.com/mozilla/pjs.git
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.
This commit is contained in:
Родитель
8b074a2461
Коммит
9562844af2
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче