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:
bryner%netscape.com 2002-04-20 05:40:24 +00:00
Родитель 8b074a2461
Коммит 9562844af2
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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();