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

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

Issue 2038005: Change socket pool max from 100 to 1000000 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/375/src/
Patch Set: Created 10 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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/http/http_network_session.h" 5 #include "net/http/http_network_session.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/http/http_auth_handler_factory.h" 8 #include "net/http/http_auth_handler_factory.h"
9 #include "net/http/url_security_manager.h" 9 #include "net/http/url_security_manager.h"
10 #include "net/spdy/spdy_session_pool.h" 10 #include "net/spdy/spdy_session_pool.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 // static 14 // static
15 int HttpNetworkSession::max_sockets_ = 100; 15 int HttpNetworkSession::max_sockets_ = 1000000;
Mark Mentovai 2010/05/07 19:01:29 Will, does this leave us exposed to file descripto
16 16
17 // static 17 // static
18 int HttpNetworkSession::max_sockets_per_group_ = 6; 18 int HttpNetworkSession::max_sockets_per_group_ = 6;
19 19
20 // static 20 // static
21 uint16 HttpNetworkSession::g_fixed_http_port = 0; 21 uint16 HttpNetworkSession::g_fixed_http_port = 0;
22 uint16 HttpNetworkSession::g_fixed_https_port = 0; 22 uint16 HttpNetworkSession::g_fixed_https_port = 0;
23 23
24 // TODO(vandebo) when we've completely converted to pools, the base TCP 24 // TODO(vandebo) when we've completely converted to pools, the base TCP
25 // pool name should get changed to TCP instead of Transport. 25 // pool name should get changed to TCP instead of Transport.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void HttpNetworkSession::ReplaceTCPSocketPool() { 68 void HttpNetworkSession::ReplaceTCPSocketPool() {
69 tcp_socket_pool_ = new TCPClientSocketPool(max_sockets_, 69 tcp_socket_pool_ = new TCPClientSocketPool(max_sockets_,
70 max_sockets_per_group_, 70 max_sockets_per_group_,
71 "Transport", 71 "Transport",
72 host_resolver_, 72 host_resolver_,
73 socket_factory_, 73 socket_factory_,
74 network_change_notifier_); 74 network_change_notifier_);
75 } 75 }
76 76
77 } // namespace net 77 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698