$OpenBSD$ index 3602585..16cfcba 100644 --- netwerk/protocol/http/nsHttpHandler.cpp.orig Fri Feb 20 15:40:37 2015 +++ netwerk/protocol/http/nsHttpHandler.cpp Fri Feb 20 15:40:37 2015 @@ -346,6 +346,7 @@ nsHttpHandler::Init() mObserverService->AddObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID, true); mObserverService->AddObserver(this, "net:clear-active-logins", true); mObserverService->AddObserver(this, "net:prune-dead-connections", true); + mObserverService->AddObserver(this, "net:prune-all-connections", true); mObserverService->AddObserver(this, "net:failed-to-process-uri-content", true); mObserverService->AddObserver(this, "last-pb-context-exited", true); } @@ -1853,6 +1854,12 @@ nsHttpHandler::Observe(nsISupports *subject, mConnMgr->PruneDeadConnections(); } } + else if (strcmp(topic, "net:prune-all-connections") == 0) { + if (mConnMgr) { + mConnMgr->DoShiftReloadConnectionCleanup(nullptr); + mConnMgr->PruneDeadConnections(); + } + } else if (strcmp(topic, "net:failed-to-process-uri-content") == 0) { nsCOMPtr uri = do_QueryInterface(subject); if (uri && mConnMgr)