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

Side by Side Diff: net/socket/tcp_client_socket_pool.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/socket/tcp_client_socket_pool.h ('k') | no next file » | 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/socket/tcp_client_socket_pool.h" 5 #include "net/socket/tcp_client_socket_pool.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 } 217 }
218 218
219 void TCPClientSocketPool::CancelRequest( 219 void TCPClientSocketPool::CancelRequest(
220 const std::string& group_name, 220 const std::string& group_name,
221 const ClientSocketHandle* handle) { 221 const ClientSocketHandle* handle) {
222 base_.CancelRequest(group_name, handle); 222 base_.CancelRequest(group_name, handle);
223 } 223 }
224 224
225 void TCPClientSocketPool::ReleaseSocket( 225 void TCPClientSocketPool::ReleaseSocket(
226 const std::string& group_name, 226 const std::string& group_name,
227 ClientSocket* socket) { 227 ClientSocket* socket,
228 base_.ReleaseSocket(group_name, socket); 228 int id) {
229 base_.ReleaseSocket(group_name, socket, id);
230 }
231
232 void TCPClientSocketPool::Flush() {
233 base_.Flush();
229 } 234 }
230 235
231 void TCPClientSocketPool::CloseIdleSockets() { 236 void TCPClientSocketPool::CloseIdleSockets() {
232 base_.CloseIdleSockets(); 237 base_.CloseIdleSockets();
233 } 238 }
234 239
235 int TCPClientSocketPool::IdleSocketCountInGroup( 240 int TCPClientSocketPool::IdleSocketCountInGroup(
236 const std::string& group_name) const { 241 const std::string& group_name) const {
237 return base_.IdleSocketCountInGroup(group_name); 242 return base_.IdleSocketCountInGroup(group_name);
238 } 243 }
239 244
240 LoadState TCPClientSocketPool::GetLoadState( 245 LoadState TCPClientSocketPool::GetLoadState(
241 const std::string& group_name, const ClientSocketHandle* handle) const { 246 const std::string& group_name, const ClientSocketHandle* handle) const {
242 return base_.GetLoadState(group_name, handle); 247 return base_.GetLoadState(group_name, handle);
243 } 248 }
244 249
245 } // namespace net 250 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/tcp_client_socket_pool.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698