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

Side by Side Diff: net/http/http_network_session.cc

Issue 2647003: Do not attempt to reuse active sockets after a socket pool flush (usually a network change). (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Address eroman comments. Created 10 years, 6 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 unified diff | Download patch
« no previous file with comments | « net/http/http_network_session.h ('k') | net/socket/client_socket_handle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_network_session.h" 5 #include "net/http/http_network_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stl_util-inl.h" 10 #include "base/stl_util-inl.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // static 136 // static
137 uint16 HttpNetworkSession::fixed_https_port() { 137 uint16 HttpNetworkSession::fixed_https_port() {
138 return g_fixed_https_port; 138 return g_fixed_https_port;
139 } 139 }
140 140
141 // static 141 // static
142 void HttpNetworkSession::set_fixed_https_port(uint16 port) { 142 void HttpNetworkSession::set_fixed_https_port(uint16 port) {
143 g_fixed_https_port = port; 143 g_fixed_https_port = port;
144 } 144 }
145 145
146 void HttpNetworkSession::ReplaceTCPSocketPool() {
147 tcp_socket_pool_ = new TCPClientSocketPool(g_max_sockets,
148 g_max_sockets_per_group,
149 tcp_pool_histograms_,
150 host_resolver_,
151 socket_factory_,
152 network_change_notifier_,
153 net_log_);
154 }
155
156 } // namespace net 146 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.h ('k') | net/socket/client_socket_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698