summaryrefslogtreecommitdiffstats
path: root/net/socket/client_socket_pool.h
diff options
context:
space:
mode:
authorziadh@chromium.org <ziadh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-21 18:46:00 +0000
committerziadh@chromium.org <ziadh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-21 18:46:00 +0000
commit241c5c2c0e223f9bf3f5f38661d21c0a46bdfe59 (patch)
treeeb7b4d038bb311c094b3d882e4ac9ec52876bb5a /net/socket/client_socket_pool.h
parent8974e04c6ef2c9fe849e17a4b2224d1b51f4001c (diff)
downloadchromium_src-241c5c2c0e223f9bf3f5f38661d21c0a46bdfe59.zip
chromium_src-241c5c2c0e223f9bf3f5f38661d21c0a46bdfe59.tar.gz
chromium_src-241c5c2c0e223f9bf3f5f38661d21c0a46bdfe59.tar.bz2
A/B test for determining a value for unused socket timeout. Currently the
timeout defaults to 10 seconds. Having this value set too low won't allow us to take advantage of idle sockets. Setting it to too high could possibly result in more ERR_CONNECT_RESETs, requiring one RTT to receive the RST packet and possibly another RTT to re-establish the connection. r=jar Review URL: http://codereview.chromium.org/2827016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50364 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/client_socket_pool.h')
-rw-r--r--net/socket/client_socket_pool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/socket/client_socket_pool.h b/net/socket/client_socket_pool.h
index c5f6f16..807104e 100644
--- a/net/socket/client_socket_pool.h
+++ b/net/socket/client_socket_pool.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/ref_counted.h"
+#include "base/time.h"
#include "base/template_util.h"
#include "net/base/completion_callback.h"
#include "net/base/host_resolver.h"
@@ -103,6 +104,9 @@ class ClientSocketPool : public base::RefCounted<ClientSocketPool> {
// UMA_HISTOGRAM_* macros because they are callsite static.
virtual scoped_refptr<ClientSocketPoolHistograms> histograms() const = 0;
+ static int unused_idle_socket_timeout();
+ static void set_unused_idle_socket_timeout(int timeout);
+
protected:
ClientSocketPool() {}
virtual ~ClientSocketPool() {}