Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Issue 160499: Add timeouts for ConnectJobs. Limit ConnectJobs per group to number of Requests per group + 1. (Closed)

Created:
11 years, 4 months ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
Reviewers:
eroman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add timeouts for ConnectJobs. Limit ConnectJobs per group to number of Requests per group + 1. In the histograms for Net.SocketRequestTime, late binding has a much longer tail. This is presumably because I didn't implement timeouts and CancelRequest() never cancelled jobs. I'm limiting TCPConnectJobs to 60 seconds and cancelling jobs if there are too many more than there are requests.

Patch Set 1 #

Patch Set 2 : Add tests for connect job timeouts. #

Total comments: 19

Patch Set 3 : Address eroman's comments. #

Patch Set 4 : Revert #

Patch Set 5 : Revert the revert. Fix tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -18 lines) Patch
M net/socket/client_socket_pool_base.h View 1 2 4 5 chunks +16 lines, -3 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 2 4 4 chunks +22 lines, -1 line 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 1 2 3 4 9 chunks +107 lines, -7 lines 0 comments Download
M net/socket/tcp_client_socket_pool.h View 4 4 chunks +8 lines, -5 lines 0 comments Download
M net/socket/tcp_client_socket_pool.cc View 1 2 4 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
willchan no longer on Chromium
This is still missing tests for timeouts. I added a test for the change in ...
11 years, 4 months ago (2009-08-01 08:03:17 UTC) #1
willchan no longer on Chromium
On 2009/08/01 08:03:17, willchan wrote: > This is still missing tests for timeouts. I added ...
11 years, 4 months ago (2009-08-02 04:27:39 UTC) #2
willchan no longer on Chromium
On 2009/08/02 04:27:39, willchan wrote: > On 2009/08/01 08:03:17, willchan wrote: > > This is ...
11 years, 4 months ago (2009-08-02 04:27:50 UTC) #3
eroman
General question: What is the rationale behind "30 seconds"? ...It seems fairly reasonable. I guess ...
11 years, 4 months ago (2009-08-02 11:09:30 UTC) #4
eroman
(I will dive into this review tomorrow or monday).
11 years, 4 months ago (2009-08-02 11:11:42 UTC) #5
eroman
http://codereview.chromium.org/160499/diff/9/10 File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/160499/diff/9/10#newcode59 Line 59: delegate()->OnConnectJobComplete(ERR_TIMED_OUT, this); Can you NULL delegate before calling ...
11 years, 4 months ago (2009-08-03 20:03:24 UTC) #6
willchan no longer on Chromium
http://codereview.chromium.org/160499/diff/9/10 File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/160499/diff/9/10#newcode59 Line 59: delegate()->OnConnectJobComplete(ERR_TIMED_OUT, this); On 2009/08/03 20:03:24, eroman wrote: > ...
11 years, 4 months ago (2009-08-03 20:45:46 UTC) #7
eroman
lgtm
11 years, 4 months ago (2009-08-03 22:01:14 UTC) #8
willchan no longer on Chromium
I've fixed the tests to run properly. I put the ConnectJobTests in the ClientSocketPoolBaseTest fixture ...
11 years, 4 months ago (2009-08-03 22:57:52 UTC) #9
eroman
11 years, 4 months ago (2009-08-03 23:02:11 UTC) #10
lgtm.

Powered by Google App Engine
This is Rietveld 408576698