зеркало из 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)
|
if (mAuthCache)
|
||||||
mAuthCache->ClearAll();
|
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
|
// need to reset the session start time since cache validation may
|
||||||
// depend on this value.
|
// depend on this value.
|
||||||
mSessionStartTime = NowInSeconds();
|
mSessionStartTime = NowInSeconds();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче