From 817a6d072a3bd70df9a3015988f05ee84f0254e7 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Thu, 25 Jan 2018 13:11:23 +0800 Subject: [PATCH] socket: Allow higher limits for proxies As an intermediary proxy we should not enforce stricter connection limits in addition to what the user is already enforcing. --- net/socket/client_socket_pool_manager.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/socket/client_socket_pool_manager.cc b/net/socket/client_socket_pool_manager.cc index d621708953..f1ef28378d 100644 --- a/net/socket/client_socket_pool_manager.cc +++ b/net/socket/client_socket_pool_manager.cc @@ -284,7 +284,6 @@ void ClientSocketPoolManager::set_max_sockets_per_pool( HttpNetworkSession::SocketPoolType pool_type, int socket_count) { DCHECK_LT(0, socket_count); - DCHECK_GT(1000, socket_count); // Sanity check. DCHECK_LT(pool_type, HttpNetworkSession::NUM_SOCKET_POOL_TYPES); g_max_sockets_per_pool[pool_type] = socket_count; DCHECK_GE(g_max_sockets_per_pool[pool_type], @@ -304,7 +303,6 @@ void ClientSocketPoolManager::set_max_sockets_per_group( int socket_count) { DCHECK_LT(0, socket_count); // The following is a sanity check... but we should NEVER be near this value. - DCHECK_GT(100, socket_count); DCHECK_LT(pool_type, HttpNetworkSession::NUM_SOCKET_POOL_TYPES); g_max_sockets_per_group[pool_type] = socket_count; @@ -326,7 +324,6 @@ void ClientSocketPoolManager::set_max_sockets_per_proxy_server( HttpNetworkSession::SocketPoolType pool_type, int socket_count) { DCHECK_LT(0, socket_count); - DCHECK_GT(100, socket_count); // Sanity check. DCHECK_LT(pool_type, HttpNetworkSession::NUM_SOCKET_POOL_TYPES); // Assert this case early on. The max number of sockets per group cannot // exceed the max number of sockets per proxy server.