diff options
Diffstat (limited to 'net/http/http_network_session.h')
-rw-r--r-- | net/http/http_network_session.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h index 3529bc8..487ade4 100644 --- a/net/http/http_network_session.h +++ b/net/http/http_network_session.h @@ -5,7 +5,6 @@ #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_ #define NET_HTTP_HTTP_NETWORK_SESSION_H_ -#include "base/logging.h" #include "base/ref_counted.h" #include "net/base/ssl_client_auth_cache.h" #include "net/base/ssl_config_service.h" @@ -22,13 +21,7 @@ class ProxyService; class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> { public: HttpNetworkSession(HostResolver* host_resolver, ProxyService* proxy_service, - ClientSocketFactory* client_socket_factory) - : connection_pool_(new TCPClientSocketPool( - max_sockets_per_group_, host_resolver, client_socket_factory)), - host_resolver_(host_resolver), - proxy_service_(proxy_service) { - DCHECK(proxy_service); - } + ClientSocketFactory* client_socket_factory); HttpAuthCache* auth_cache() { return &auth_cache_; } SSLClientAuthCache* ssl_client_auth_cache() { @@ -46,6 +39,9 @@ class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> { private: FRIEND_TEST(HttpNetworkTransactionTest, GroupNameForProxyConnections); + // Total limit of sockets. Not a constant to allow experiments. + static int max_sockets_; + // Default to allow up to 6 connections per host. Experiment and tuning may // try other values (greater than 0). Too large may cause many problems, such // as home routers blocking the connections!?!? |