summaryrefslogtreecommitdiffstats
path: root/net/socket/socks_client_socket_pool.cc
diff options
context:
space:
mode:
authorwangxianzhu@chromium.org <wangxianzhu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 09:17:30 +0000
committerwangxianzhu@chromium.org <wangxianzhu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 09:17:30 +0000
commit82b8c96729af0c7af2e9fa752aa20b158ebf3701 (patch)
tree023f4d0c34da80836f0c98ca312c6f5c477c790b /net/socket/socks_client_socket_pool.cc
parent4bc73b4934c557a814583b8f800aab024a700234 (diff)
downloadchromium_src-82b8c96729af0c7af2e9fa752aa20b158ebf3701.zip
chromium_src-82b8c96729af0c7af2e9fa752aa20b158ebf3701.tar.gz
chromium_src-82b8c96729af0c7af2e9fa752aa20b158ebf3701.tar.bz2
Expose some network configurations for performance tuning.
Make used_idle_socket_timeout configurable. Expose max_sockets_per_pool. BUG= TEST= Review URL: http://codereview.chromium.org/8073018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105046 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/socks_client_socket_pool.cc')
-rw-r--r--net/socket/socks_client_socket_pool.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/socket/socks_client_socket_pool.cc b/net/socket/socks_client_socket_pool.cc
index c80bb66..4dbb442 100644
--- a/net/socket/socks_client_socket_pool.cc
+++ b/net/socket/socks_client_socket_pool.cc
@@ -199,9 +199,8 @@ SOCKSClientSocketPool::SOCKSClientSocketPool(
NetLog* net_log)
: transport_pool_(transport_pool),
base_(max_sockets, max_sockets_per_group, histograms,
- base::TimeDelta::FromSeconds(
- ClientSocketPool::unused_idle_socket_timeout()),
- base::TimeDelta::FromSeconds(kUsedIdleSocketTimeout),
+ ClientSocketPool::unused_idle_socket_timeout(),
+ ClientSocketPool::used_idle_socket_timeout(),
new SOCKSConnectJobFactory(transport_pool,
host_resolver,
net_log)) {