summaryrefslogtreecommitdiffstats
path: root/net/socket/client_socket_pool_base.h
diff options
context:
space:
mode:
authordimich@chromium.org <dimich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-24 18:21:37 +0000
committerdimich@chromium.org <dimich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-24 18:21:37 +0000
commitea678b000451e01b4dec557132f34deaa15eac1f (patch)
tree8f3d2505710dc34ebc26143b6c15f3292b03a8c7 /net/socket/client_socket_pool_base.h
parentc6ce4f6569569fb21745b698adc9ce4abb132980 (diff)
downloadchromium_src-ea678b000451e01b4dec557132f34deaa15eac1f.zip
chromium_src-ea678b000451e01b4dec557132f34deaa15eac1f.tar.gz
chromium_src-ea678b000451e01b4dec557132f34deaa15eac1f.tar.bz2
Revert 90373 - Warmth of a connection (cwnd) is estimated by the amount of data written to the socket.
Choosing the warmest connection would mean faster resource load times. Caused layout tests http/tests/loading/redirect-methods.html and http/tests/security/xss-DENIED-iframe-src-alias.html fail on deps WebKit bots, and caused http://code.google.com/p/chromium/issues/detail?id=87423 Deps bots failures: http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20-%20chromium.org&tests=http%2Ftests%2Floading%2Fredirect-methods.html%2Chttp%2Ftests%2Fsecurity%2Fxss-DENIED-iframe-src-alias.html idle time is the time a socket has remained idle (no http requests being served on it). Probability of server resetting a connection increases with idle time duration. Using a cost function that takes into account bytes transferred and idle time to pick best connection to schedule http requests on. CODEREVIEW done in http://codereview.chromium.org/6990036/ Contributed by gagansingh@google.com Review URL: http://codereview.chromium.org/7189055 TBR=gagansingh@google.com Review URL: http://codereview.chromium.org/7255002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90389 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/client_socket_pool_base.h')
-rw-r--r--net/socket/client_socket_pool_base.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/net/socket/client_socket_pool_base.h b/net/socket/client_socket_pool_base.h
index 2490c02..a5defdf 100644
--- a/net/socket/client_socket_pool_base.h
+++ b/net/socket/client_socket_pool_base.h
@@ -50,13 +50,6 @@ namespace net {
class ClientSocketHandle;
-// Returns the client socket reuse policy.
-int GetSocketReusePolicy();
-
-// Sets the client socket reuse policy.
-// NOTE: 'policy' should be a valid ClientSocketReusePolicy enum value.
-NET_API void SetSocketReusePolicy(int policy);
-
// ConnectJob provides an abstract interface for "connecting" a socket.
// The connection may involve host resolution, tcp connection, ssl connection,
// etc.
@@ -174,17 +167,6 @@ class NET_TEST ClientSocketPoolBaseHelper
NO_IDLE_SOCKETS = 0x1, // Do not return an idle socket. Create a new one.
};
- enum ClientSocketReusePolicy {
- // Socket with largest amount of bytes transferred.
- USE_WARMEST_SOCKET = 0,
-
- // Socket which scores highest on large bytes transferred and low idle time.
- USE_WARM_SOCKET = 1,
-
- // Socket which was most recently used.
- USE_LAST_ACCESSED_SOCKET = 2,
- };
-
class NET_TEST Request {
public:
Request(ClientSocketHandle* handle,