From ea678b000451e01b4dec557132f34deaa15eac1f Mon Sep 17 00:00:00 2001 From: "dimich@chromium.org" Date: Fri, 24 Jun 2011 18:21:37 +0000 Subject: 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 --- net/socket/tcp_client_socket_libevent.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'net/socket/tcp_client_socket_libevent.h') diff --git a/net/socket/tcp_client_socket_libevent.h b/net/socket/tcp_client_socket_libevent.h index f5e4a28..607b9ee 100644 --- a/net/socket/tcp_client_socket_libevent.h +++ b/net/socket/tcp_client_socket_libevent.h @@ -53,8 +53,6 @@ class TCPClientSocketLibevent : public StreamSocket, base::NonThreadSafe { virtual void SetOmniboxSpeculation(); virtual bool WasEverUsed() const; virtual bool UsingTCPFastOpen() const; - virtual int64 NumBytesRead() const; - virtual base::TimeDelta GetConnectTimeMicros() const; // Socket methods: // Multiple outstanding requests are not supported. @@ -197,10 +195,6 @@ class TCPClientSocketLibevent : public StreamSocket, base::NonThreadSafe { // True when TCP FastOpen is in use and we have done the connect. bool tcp_fastopen_connected_; - base::TimeTicks connect_start_time_; - base::TimeDelta connect_time_micros_; - int64 num_bytes_read_; - DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent); }; -- cgit v1.1