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

Issue 149027: Limit total number of sockets in the system.... (Closed)

Created:
11 years, 6 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

Limit total number of sockets in the system. Based on Eric Roman's patch at http://codereview.chromium.org/62181 http://crbug.com/15093 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21276

Patch Set 1 #

Total comments: 7

Patch Set 2 : '' #

Patch Set 3 : now with tests #

Total comments: 13

Patch Set 4 : fixes #

Total comments: 1

Patch Set 5 : sync with trunk #

Patch Set 6 : style fix #

Total comments: 16

Patch Set 7 : fixes #

Total comments: 6

Patch Set 8 : reduce reader confusion #

Total comments: 1

Patch Set 9 : fix the comment #

Total comments: 2

Patch Set 10 : remove risky optimization #

Total comments: 2

Patch Set 11 : reorder #

Unified diffs Side-by-side diffs Delta from patch set Stats (+441 lines, -91 lines) Patch
M net/http/http_network_session.h View 1 2 3 4 5 6 3 chunks +4 lines, -8 lines 0 comments Download
M net/http/http_network_session.cc View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_base.h View 1 2 3 4 5 6 7 8 10 7 chunks +44 lines, -5 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +74 lines, -3 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 3 4 5 6 7 39 chunks +296 lines, -72 lines 0 comments Download
M net/socket/tcp_client_socket_pool.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M net/socket/tcp_client_socket_pool.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M net/socket/tcp_client_socket_pool_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
Paweł Hajdan Jr.
11 years, 6 months ago (2009-06-25 21:42:59 UTC) #1
eroman
Aside from needing unit-tests, this looks good to me. Then again i am a biased ...
11 years, 6 months ago (2009-06-26 01:20:12 UTC) #2
willchan no longer on Chromium
I agree with eroman, this code definitely needs tests. http://codereview.chromium.org/149027/diff/1/5 File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/149027/diff/1/5#newcode269 Line ...
11 years, 6 months ago (2009-06-26 21:58:19 UTC) #3
Paweł Hajdan Jr.
+wtc After refactorings I was able to make the tests for this code. I probably ...
11 years, 5 months ago (2009-07-14 18:21:50 UTC) #4
willchan no longer on Chromium
I didn't read the test. http://codereview.chromium.org/149027/diff/29/33 File net/socket/client_socket_pool_base.h (right): http://codereview.chromium.org/149027/diff/29/33#newcode213 Line 213: bool may_have_stalled_group() const ...
11 years, 5 months ago (2009-07-14 22:51:02 UTC) #5
eroman
http://codereview.chromium.org/149027/diff/29/32 File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/149027/diff/29/32#newcode315 Line 315: if (group.active_socket_count < max_sockets_per_group_ && You need to ...
11 years, 5 months ago (2009-07-15 04:34:04 UTC) #6
willchan no longer on Chromium
Heads up that I'm landing my late binding changelist soon, which will give you merge ...
11 years, 5 months ago (2009-07-15 16:46:26 UTC) #7
Paweł Hajdan Jr.
http://codereview.chromium.org/149027/diff/29/32 File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/149027/diff/29/32#newcode315 Line 315: if (group.active_socket_count < max_sockets_per_group_ && On 2009/07/15 04:34:04, ...
11 years, 5 months ago (2009-07-15 17:07:04 UTC) #8
eroman
> Heads up that I'm landing my late binding changelist soon, which will > give ...
11 years, 5 months ago (2009-07-15 19:38:44 UTC) #9
willchan no longer on Chromium
On 2009/07/15 19:38:44, eroman wrote: > > Heads up that I'm landing my late binding ...
11 years, 5 months ago (2009-07-15 19:40:54 UTC) #10
eroman
Patchset 4 looks good to me. Let me know when the late-binding stuff is merged ...
11 years, 5 months ago (2009-07-15 20:39:23 UTC) #11
Paweł Hajdan Jr.
Synced with trunk. Please review.
11 years, 5 months ago (2009-07-15 22:54:47 UTC) #12
wtc
Thank you for picking up this work. I haven't reviewed net/socket/client_socket_pool_base_unittest.cc. We can discuss the ...
11 years, 5 months ago (2009-07-16 01:07:37 UTC) #13
willchan no longer on Chromium
http://codereview.chromium.org/149027/diff/2048/54 File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/149027/diff/2048/54#newcode110 Line 110: connecting_socket_count_++; On 2009/07/16 01:07:37, wtc wrote: > Should ...
11 years, 5 months ago (2009-07-17 20:08:53 UTC) #14
Paweł Hajdan Jr.
Fixes applied, please take a look. willchan, thanks for the comment about where to move ...
11 years, 5 months ago (2009-07-17 21:01:56 UTC) #15
wtc
LGTM. Please make the following changes before you commit this CL. Thanks! http://codereview.chromium.org/149027/diff/3001/2054 File net/socket/client_socket_pool_base.cc ...
11 years, 5 months ago (2009-07-17 22:49:36 UTC) #16
willchan no longer on Chromium
I didn't double check the test. http://codereview.chromium.org/149027/diff/3001/2054 File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/149027/diff/3001/2054#newcode353 Line 353: may_have_stalled_group_ = ...
11 years, 5 months ago (2009-07-17 22:58:15 UTC) #17
Paweł Hajdan Jr.
I think I applied all fixes. The patchset does not disable any test, it just ...
11 years, 5 months ago (2009-07-17 23:21:40 UTC) #18
willchan no longer on Chromium
LGTM http://codereview.chromium.org/149027/diff/3006/3010 File net/socket/client_socket_pool_base.h (right): http://codereview.chromium.org/149027/diff/3006/3010#newcode237 Line 237: // Scans the group map for groups ...
11 years, 5 months ago (2009-07-17 23:27:04 UTC) #19
Paweł Hajdan Jr.
On 2009/07/17 23:27:04, willchan wrote: > LGTM > > http://codereview.chromium.org/149027/diff/3006/3010 > File net/socket/client_socket_pool_base.h (right): > ...
11 years, 5 months ago (2009-07-17 23:30:59 UTC) #20
eroman
http://codereview.chromium.org/149027/diff/3017/2069 File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/149027/diff/3017/2069#newcode462 Line 462: if (stalled_group_count <= 1) Why was this changed ...
11 years, 5 months ago (2009-07-20 19:47:34 UTC) #21
willchan no longer on Chromium
http://codereview.chromium.org/149027/diff/3017/2069 File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/149027/diff/3017/2069#newcode462 Line 462: if (stalled_group_count <= 1) On 2009/07/20 19:47:34, eroman ...
11 years, 5 months ago (2009-07-20 19:54:55 UTC) #22
Paweł Hajdan Jr.
I couldn't find a scenario in which it currently makes a difference, but indeed, that ...
11 years, 5 months ago (2009-07-20 22:03:14 UTC) #23
eroman
lgtm
11 years, 5 months ago (2009-07-20 22:16:49 UTC) #24
wtc
http://codereview.chromium.org/149027/diff/2078/2081 File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/149027/diff/2078/2081#newcode461 Line 461: if (!GetTopStalledGroup(&top_group, &top_group_name)) Eric, I also suggested eliminating ...
11 years, 5 months ago (2009-07-20 22:20:13 UTC) #25
eroman
http://codereview.chromium.org/149027/diff/2078/2081 File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/149027/diff/2078/2081#newcode461 Line 461: if (!GetTopStalledGroup(&top_group, &top_group_name)) On 2009/07/20 22:20:13, wtc wrote: ...
11 years, 5 months ago (2009-07-20 22:44:17 UTC) #26
Paweł Hajdan Jr.
(b) uploaded.
11 years, 5 months ago (2009-07-20 23:48:22 UTC) #27
eroman
11 years, 5 months ago (2009-07-20 23:55:17 UTC) #28
lgtm, thanks

Powered by Google App Engine
This is Rietveld 408576698