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

Issue 18796003: When an idle socket is added back to a socket pool, check for stalled jobs in lower pools (Closed)

Created:
7 years, 5 months ago by mmenke
Modified:
7 years, 4 months ago
Reviewers:
Ryan Hamilton, akalin
CC:
chromium-reviews, cbentzel+watch_chromium.org, willchan no longer on Chromium
Visibility:
Public.

Description

When an idle socket is added back to a socket pool, check if lower layer socket pools are stalled. If so, close the idle socket. Also, when a SPDY stream is destroyed, check if the session is idle and a lower layer pool is stalled, and close the session if needed. BUG=92244 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219147

Patch Set 1 #

Patch Set 2 : Update comment, fix const correctness issue #

Patch Set 3 : #

Patch Set 4 : Reorder methods, update comments #

Patch Set 5 : Undo somewhat tangential change #

Total comments: 6

Patch Set 6 : Merge, fix trivial conflicts #

Patch Set 7 : Fix SPDY case #

Patch Set 8 : Another SPDY fix #

Patch Set 9 : sync #

Total comments: 10

Patch Set 10 : sync #

Patch Set 11 : Response to comments #

Total comments: 4

Patch Set 12 : Response to comments #

Total comments: 10

Patch Set 13 : Fix/add comments #

Total comments: 4

Patch Set 14 : Update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+483 lines, -218 lines) Patch
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +169 lines, -0 lines 0 comments Download
M net/http/http_proxy_client_socket_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +9 lines, -8 lines 0 comments Download
M net/http/http_proxy_client_socket_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +18 lines, -23 lines 0 comments Download
M net/socket/client_socket_handle.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -3 lines 0 comments Download
M net/socket/client_socket_handle.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +19 lines, -15 lines 0 comments Download
M net/socket/client_socket_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +24 lines, -15 lines 0 comments Download
M net/socket/client_socket_pool_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +38 lines, -17 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +71 lines, -33 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +13 lines, -12 lines 0 comments Download
M net/socket/socks_client_socket_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +9 lines, -8 lines 0 comments Download
M net/socket/socks_client_socket_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +17 lines, -18 lines 0 comments Download
M net/socket/ssl_client_socket_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +9 lines, -8 lines 0 comments Download
M net/socket/ssl_client_socket_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +20 lines, -28 lines 0 comments Download
M net/socket/transport_client_socket_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -3 lines 0 comments Download
M net/socket/transport_client_socket_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +16 lines, -14 lines 0 comments Download
M net/spdy/spdy_session.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +18 lines, -2 lines 0 comments Download
M net/spdy/spdy_session_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +17 lines, -9 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
mmenke
rch: PTAL willchan: FYI This is the final part of closing idle sockets when lower ...
7 years, 5 months ago (2013-07-16 16:15:12 UTC) #1
Ryan Hamilton
This looks like a great change. I like the explicit Higher/Lower naming choice. One comment, ...
7 years, 5 months ago (2013-07-21 14:53:54 UTC) #2
mmenke
https://codereview.chromium.org/18796003/diff/44022/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/18796003/diff/44022/net/socket/client_socket_pool_base.cc#newcode247 net/socket/client_socket_pool_base.cc:247: // If a lower layer pool is stalled, consider ...
7 years, 5 months ago (2013-07-22 20:13:33 UTC) #3
Ryan Hamilton
https://codereview.chromium.org/18796003/diff/44022/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/18796003/diff/44022/net/socket/client_socket_pool_base.cc#newcode247 net/socket/client_socket_pool_base.cc:247: // If a lower layer pool is stalled, consider ...
7 years, 5 months ago (2013-07-22 20:22:46 UTC) #4
mmenke
Here's a very simple workaround for safe when it becomes idle. I don't think destroying ...
7 years, 5 months ago (2013-07-24 19:05:23 UTC) #5
Ryan Hamilton
+akalin
7 years, 5 months ago (2013-07-24 19:59:00 UTC) #6
mmenke
On 2013/07/24 19:59:00, Ryan Hamilton wrote: > +akalin akalin: Ping!
7 years, 4 months ago (2013-08-19 13:19:42 UTC) #7
akalin
On 2013/08/19 13:19:42, mmenke wrote: > On 2013/07/24 19:59:00, Ryan Hamilton wrote: > > +akalin ...
7 years, 4 months ago (2013-08-21 17:02:14 UTC) #8
mmenke
On 2013/08/21 17:02:14, akalin wrote: > On 2013/08/19 13:19:42, mmenke wrote: > > On 2013/07/24 ...
7 years, 4 months ago (2013-08-21 17:04:00 UTC) #9
akalin
initial comments https://codereview.chromium.org/18796003/diff/167001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/18796003/diff/167001/net/socket/client_socket_pool_base.cc#newcode259 net/socket/client_socket_pool_base.cc:259: // If we are not using |max_sockets_|, ...
7 years, 4 months ago (2013-08-21 17:29:03 UTC) #10
mmenke
https://codereview.chromium.org/18796003/diff/167001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/18796003/diff/167001/net/socket/client_socket_pool_base.cc#newcode259 net/socket/client_socket_pool_base.cc:259: // If we are not using |max_sockets_|, then clearly ...
7 years, 4 months ago (2013-08-21 18:17:16 UTC) #11
akalin
couple more SPDY comments https://codereview.chromium.org/18796003/diff/198001/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): https://codereview.chromium.org/18796003/diff/198001/net/spdy/spdy_session.cc#newcode1063 net/spdy/spdy_session.cc:1063: // If there are no ...
7 years, 4 months ago (2013-08-21 21:01:17 UTC) #12
mmenke
Thanks for the feedback. https://codereview.chromium.org/18796003/diff/198001/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): https://codereview.chromium.org/18796003/diff/198001/net/spdy/spdy_session.cc#newcode1063 net/spdy/spdy_session.cc:1063: // If there are no ...
7 years, 4 months ago (2013-08-21 21:10:08 UTC) #13
akalin
SPDY stuff looks good, but a few more comments https://codereview.chromium.org/18796003/diff/217001/net/socket/client_socket_handle.cc File net/socket/client_socket_handle.cc (right): https://codereview.chromium.org/18796003/diff/217001/net/socket/client_socket_handle.cc#newcode89 net/socket/client_socket_handle.cc:89: ...
7 years, 4 months ago (2013-08-21 22:36:31 UTC) #14
mmenke
https://codereview.chromium.org/18796003/diff/217001/net/socket/client_socket_handle.cc File net/socket/client_socket_handle.cc (right): https://codereview.chromium.org/18796003/diff/217001/net/socket/client_socket_handle.cc#newcode89 net/socket/client_socket_handle.cc:89: CHECK(higher_pool); On 2013/08/21 22:36:31, akalin wrote: > can you ...
7 years, 4 months ago (2013-08-22 14:35:31 UTC) #15
akalin
lgtm! https://codereview.chromium.org/18796003/diff/244001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/18796003/diff/244001/net/socket/client_socket_pool_base.cc#newcode259 net/socket/client_socket_pool_base.cc:259: // If we are not using |max_sockets_|, then ...
7 years, 4 months ago (2013-08-22 19:23:25 UTC) #16
mmenke
Thanks so much for the comments! https://codereview.chromium.org/18796003/diff/244001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/18796003/diff/244001/net/socket/client_socket_pool_base.cc#newcode259 net/socket/client_socket_pool_base.cc:259: // If we ...
7 years, 4 months ago (2013-08-22 19:53:05 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/18796003/192001
7 years, 4 months ago (2013-08-22 19:56:52 UTC) #18
commit-bot: I haz the power
7 years, 4 months ago (2013-08-22 23:41:55 UTC) #19
Message was sent while issue was closed.
Change committed as 219147

Powered by Google App Engine
This is Rietveld 408576698