Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2189)

Unified Diff: net/http/http_cache.cc

Issue 1604045: Fix crash on IP address change. (Closed)
Patch Set: Merge conflict Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/mock_host_resolver.cc ('k') | net/http/http_network_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache.cc
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index f1ddaf911db69bf0e32d044f38593c73258cd531..3a816f741a9bc3e992c49e052e33a3de129adf41 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -371,8 +371,12 @@ void HttpCache::CloseCurrentConnections() {
net::HttpNetworkLayer* network =
static_cast<net::HttpNetworkLayer*>(network_layer_.get());
HttpNetworkSession* session = network->GetSession();
- if (session)
- session->Flush();
+ if (session) {
+ session->tcp_socket_pool()->CloseIdleSockets();
+ if (session->spdy_session_pool())
+ session->spdy_session_pool()->CloseAllSessions();
+ session->ReplaceTCPSocketPool();
+ }
}
//-----------------------------------------------------------------------------
« no previous file with comments | « net/base/mock_host_resolver.cc ('k') | net/http/http_network_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698