diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-14 08:37:32 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-14 08:37:32 +0000 |
commit | 6b624c635e92dd4b5fe215ef764fd6f12dcbd0b7 (patch) | |
tree | 61b4eb06ecdc407f6932b8178f347ae344455315 /net/socket/client_socket_pool.h | |
parent | caa55f3e114021dccc1935ed6fbac6247dca3eb7 (diff) | |
download | chromium_src-6b624c635e92dd4b5fe215ef764fd6f12dcbd0b7.zip chromium_src-6b624c635e92dd4b5fe215ef764fd6f12dcbd0b7.tar.gz chromium_src-6b624c635e92dd4b5fe215ef764fd6f12dcbd0b7.tar.bz2 |
When connect takes too long for a new socket group, issue a single
backup socket request to retry the connect. This reduces latency in the
presence of packet loss.
BUG=36629
TEST=TCPClientSocketPoolTest.BackupSocket*
Review URL: http://codereview.chromium.org/842004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41543 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/client_socket_pool.h')
-rw-r--r-- | net/socket/client_socket_pool.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/socket/client_socket_pool.h b/net/socket/client_socket_pool.h index 4bd1a58..718b1f8 100644 --- a/net/socket/client_socket_pool.h +++ b/net/socket/client_socket_pool.h @@ -82,6 +82,9 @@ class ClientSocketPool : public base::RefCounted<ClientSocketPool> { virtual LoadState GetLoadState(const std::string& group_name, const ClientSocketHandle* handle) const = 0; + // Returns the maximum amount of time to wait before retrying a connect. + static const int kMaxConnectRetryIntervalMs = 250; + protected: ClientSocketPool() {} virtual ~ClientSocketPool() {} |