diff options
author | pastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-11 09:35:45 +0000 |
---|---|---|
committer | pastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-11 09:35:45 +0000 |
commit | 12c84e28a1eee00b8f2bb60c10395e9bf6007241 (patch) | |
tree | 4532fb4d65a980b155873c9ac35488eef53d16be /net | |
parent | fbf45bc40900fb2be79e5938831ffd0f5f4c7514 (diff) | |
download | chromium_src-12c84e28a1eee00b8f2bb60c10395e9bf6007241.zip chromium_src-12c84e28a1eee00b8f2bb60c10395e9bf6007241.tar.gz chromium_src-12c84e28a1eee00b8f2bb60c10395e9bf6007241.tar.bz2 |
Introduce a policy to control the maximal number of connections per proxy server.
BUG=63658
TEST=All policy unit_tests should pass.
Review URL: http://codereview.chromium.org/7326017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91998 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/socket/client_socket_pool_manager.cc | 2 | ||||
-rw-r--r-- | net/socket/client_socket_pool_manager.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/net/socket/client_socket_pool_manager.cc b/net/socket/client_socket_pool_manager.cc index f26f876..d917fbe 100644 --- a/net/socket/client_socket_pool_manager.cc +++ b/net/socket/client_socket_pool_manager.cc @@ -40,7 +40,7 @@ int g_max_sockets_per_group = 6; // The max number of sockets to allow per proxy server. This applies both to // http and SOCKS proxies. See http://crbug.com/12066 and // http://crbug.com/44501 for details about proxy server connection limits. -int g_max_sockets_per_proxy_server = 32; +int g_max_sockets_per_proxy_server = kDefaultMaxSocketsPerProxyServer; // Appends information about all |socket_pools| to the end of |list|. template <class MapType> diff --git a/net/socket/client_socket_pool_manager.h b/net/socket/client_socket_pool_manager.h index 5ef70f0..883d68f 100644 --- a/net/socket/client_socket_pool_manager.h +++ b/net/socket/client_socket_pool_manager.h @@ -51,6 +51,10 @@ class TransportClientSocketPool; struct SSLConfig; +// This should rather be a simple constant but Windows shared libs doesn't +// really offer much flexiblity in exporting contants. +enum DefaultMaxValues { kDefaultMaxSocketsPerProxyServer = 32 }; + namespace internal { // A helper class for auto-deleting Values in the destructor. |