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

Issue 10026024: Attempting to re-land a small portion of this change... Simply add links from (Closed)

Created:
8 years, 8 months ago by Ryan Hamilton
Modified:
8 years, 8 months ago
CC:
eroman, chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Attempting to re-land a small portion of this change... Simply add links from lower layer pools to higher layer pool. Revert 10006036 - Revert 130129 - Revert 129034 - Revert 127893 - Revert 127730 - Revert 127717 - Revert 118788 - Revert 113405 - Revert 113305 - Revert 113300 - Revert 112134 - Revert 112130 - Close idle connections / SPDY sessions when needed Due to the idle connection state being held by different socket pools, it's possible for one socket pool to hold an idle socket in a lower layer socket pool. From the lower level socket pool's perspective, the socket is being "actively" used. From the higher socket pool's (including SpdySession, which is more of a connection manager) perspective, the connection is idle and can be closed if we have hit a limit. Normally this isn't a big deal, except when we have a lot of idle SPDY connections and are connecting via a proxy, so we have low connection limits through the proxy server. We address this problem by allowing lower-level socket pools to tell higher level socket pools to close a socket. Fixed ASAN test failures by removing .Times(1) and .Times(2) from CloseMultipleIdleSocketsHeldByLayeredPoolWhenNeeded unittest (this removes the tests relying on the order of std::set in CloseOneIdleConnectionInLayeredPool). ASAN is prob ably causing the memory allocator to allocate the pools differently. The std::set is ordered by LayeredPool* which is the address of the LayeredPool (willchan). Added NET_EXPORT for layered_pool class defintion to fix windows shared compile. BUG=62364, 92244, 109876, 110368, 119847 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131604

Patch Set 1 #

Patch Set 2 : Remove logic to actually close idle sockets. #

Patch Set 3 : Remove tests #

Patch Set 4 : Rebase #

Total comments: 2

Patch Set 5 : Fix willchan's nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -32 lines) Patch
M net/http/http_proxy_client_socket_pool.h View 4 chunks +12 lines, -1 line 0 comments Download
M net/http/http_proxy_client_socket_pool.cc View 4 chunks +34 lines, -2 lines 0 comments Download
M net/socket/client_socket_handle.h View 2 chunks +7 lines, -0 lines 0 comments Download
M net/socket/client_socket_handle.cc View 3 chunks +28 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool.h View 3 chunks +21 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/client_socket_pool_base.h View 11 chunks +41 lines, -12 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 2 3 4 10 chunks +71 lines, -10 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 1 2 15 chunks +52 lines, -4 lines 0 comments Download
M net/socket/socks_client_socket_pool.h View 4 chunks +11 lines, -1 line 0 comments Download
M net/socket/socks_client_socket_pool.cc View 4 chunks +26 lines, -1 line 0 comments Download
M net/socket/ssl_client_socket_pool.h View 4 chunks +10 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_pool.cc View 1 2 3 4 chunks +33 lines, -0 lines 0 comments Download
M net/socket/transport_client_socket_pool.h View 2 chunks +3 lines, -0 lines 0 comments Download
M net/socket/transport_client_socket_pool.cc View 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Ryan Hamilton
eroman: ok, this CL is a small subset of the initial CL. Can you take ...
8 years, 8 months ago (2012-04-09 21:08:10 UTC) #1
eroman
Could you have willchan or mmenke review this instead, since they did the earlier review ...
8 years, 8 months ago (2012-04-09 21:14:23 UTC) #2
Ryan Hamilton
Will, can you take a look at this? eroman is justifiably afraid :>
8 years, 8 months ago (2012-04-09 21:23:59 UTC) #3
willchan no longer on Chromium
Adding Matt too. What's your strategy here? Are you going to try to break up ...
8 years, 8 months ago (2012-04-10 10:06:42 UTC) #4
Ryan Hamilton
On 2012/04/10 10:06:42, willchan wrote: > Adding Matt too. What's your strategy here? Are you ...
8 years, 8 months ago (2012-04-10 15:40:55 UTC) #5
willchan no longer on Chromium
OK, LGTM http://codereview.chromium.org/10026024/diff/5016/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/10026024/diff/5016/net/socket/client_socket_pool_base.cc#newcode935 net/socket/client_socket_pool_base.cc:935: it != group_map_.end(); it++) { ++it :)
8 years, 8 months ago (2012-04-10 15:46:18 UTC) #6
mmenke
On 2012/04/10 15:40:55, Ryan Hamilton wrote: > On 2012/04/10 10:06:42, willchan wrote: > > Adding ...
8 years, 8 months ago (2012-04-10 15:52:21 UTC) #7
Ryan Hamilton
http://codereview.chromium.org/10026024/diff/5016/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/10026024/diff/5016/net/socket/client_socket_pool_base.cc#newcode935 net/socket/client_socket_pool_base.cc:935: it != group_map_.end(); it++) { On 2012/04/10 15:46:18, willchan ...
8 years, 8 months ago (2012-04-10 16:01:26 UTC) #8
Ryan Hamilton
On 2012/04/10 15:52:21, Matt Menke wrote: > On 2012/04/10 15:40:55, Ryan Hamilton wrote: > > ...
8 years, 8 months ago (2012-04-10 16:08:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rch@chromium.org/10026024/5016
8 years, 8 months ago (2012-04-10 16:09:07 UTC) #10
mmenke
On 2012/04/10 16:08:19, Ryan Hamilton wrote: > On 2012/04/10 15:52:21, Matt Menke wrote: > > ...
8 years, 8 months ago (2012-04-10 16:11:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rch@chromium.org/10026024/6017
8 years, 8 months ago (2012-04-10 16:16:10 UTC) #12
commit-bot: I haz the power
8 years, 8 months ago (2012-04-10 19:19:51 UTC) #13
Change committed as 131604

Powered by Google App Engine
This is Rietveld 408576698