Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |