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

Issue 1898133002: Add reprioritization to socket pools. (Closed)

Created:
4 years, 8 months ago by Randy Smith (Not in Mondays)
Modified:
3 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Adam Rice
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add reprioritization to socket pools. BUG=600839 BUG=166689 Review-Url: https://codereview.chromium.org/1898133002 Cr-Commit-Position: refs/heads/master@{#451185} Committed: https://chromium.googlesource.com/chromium/src/+/29dbad12b55c8d2d520b26987735354c25b9590c

Patch Set 1 #

Patch Set 2 : Merged to p388233 #

Patch Set 3 : Plumbed SetPriority down from HttpStreamFactoryImpl::Job. #

Total comments: 9

Patch Set 4 : Sync'd to p390110 #

Patch Set 5 : Sync'd to p392237 #

Patch Set 6 : Fixed incorrect assupmtion of ClientSocketHandle::pool_ initialization. #

Patch Set 7 : Incorporated Matt's comments. #

Total comments: 8

Patch Set 8 : Sync'd to p440510 #

Patch Set 9 : Fixed reprioritization test. #

Patch Set 10 : Add Matt's suggested tests. #

Patch Set 11 : Test for not propagating priority in HttpStreamFactoryImpl::Job if the stream's been returned alrea… #

Total comments: 17

Patch Set 12 : Fix signed/unsigned comparison for windows build. #

Patch Set 13 : Respond to Matt's comments. #

Patch Set 14 : Fix glitch in ClientSocketHandle API contract. #

Total comments: 17

Patch Set 15 : Incorporated latest round of comments. #

Total comments: 17

Patch Set 16 : Incorporated latest comments. #

Patch Set 17 : Attempt to fix windows compile failure. #

Total comments: 2

Patch Set 18 : Sync'd to p449871 #

Patch Set 19 : Incorporated comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -36 lines) Patch
M net/http/http_network_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -5 lines 0 comments Download
M net/http/http_proxy_client_socket_pool.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/http_proxy_client_socket_pool.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +12 lines, -2 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +48 lines, -0 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 14 15 16 17 1 chunk +6 lines, -0 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 14 15 16 17 1 chunk +11 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool.h View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_base.h View 1 2 3 4 5 6 7 8 9 8 chunks +27 lines, -11 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 14 15 16 17 9 chunks +56 lines, -15 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 14 15 16 17 3 chunks +109 lines, -0 lines 0 comments Download
M net/socket/socket_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +7 lines, -3 lines 0 comments Download
M net/socket/socket_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +12 lines, -0 lines 0 comments Download
M net/socket/socks_client_socket_pool.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M net/socket/socks_client_socket_pool.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_pool.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_pool.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M net/socket/transport_client_socket_pool.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M net/socket/transport_client_socket_pool.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M net/socket/websocket_transport_client_socket_pool.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M net/socket/websocket_transport_client_socket_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 91 (48 generated)
Randy Smith (Not in Mondays)
Matt, willing to take a quick look at this? I'm part way through the plumbing ...
4 years, 8 months ago (2016-04-20 00:46:42 UTC) #2
mmenke
Since you've indicated there's no rush on these, I'll probably put them both off until ...
4 years, 8 months ago (2016-04-21 18:34:07 UTC) #3
Randy Smith (Not in Mondays)
On 2016/04/21 18:34:07, mmenke wrote: > Since you've indicated there's no rush on these, I'll ...
4 years, 8 months ago (2016-04-21 18:41:36 UTC) #4
mmenke
Some preliminary comments. Looks like your new tests are failing. :( https://codereview.chromium.org/1898133002/diff/40001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): ...
4 years, 8 months ago (2016-04-22 17:04:14 UTC) #5
mmenke
https://codereview.chromium.org/1898133002/diff/40001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/1898133002/diff/40001/net/socket/client_socket_pool_base.cc#newcode533 net/socket/client_socket_pool_base.cc:533: PendingCallbackMap::iterator callback_it = pending_callback_map_.find(handle); On 2016/04/22 17:04:14, mmenke wrote: ...
4 years, 8 months ago (2016-04-22 17:05:19 UTC) #6
mmenke
Other than the facts this is completely wired up, and doesn't have any tests, this ...
4 years, 7 months ago (2016-04-29 18:23:00 UTC) #7
Randy Smith (Not in Mondays)
On 2016/04/29 18:23:00, mmenke wrote: > Other than the facts this is completely wired up, ...
4 years, 7 months ago (2016-05-08 00:50:41 UTC) #9
Randy Smith (Not in Mondays)
Matt: I've incorporated your comments, and am now going to work on tests. You're welcome ...
4 years, 7 months ago (2016-05-08 01:36:20 UTC) #11
mmenke
Not a full review. For the test fixture, I suggest just a max of one ...
4 years, 7 months ago (2016-05-09 18:41:03 UTC) #12
mmenke
Removing myself as a reviewer from CLs that are very stale, and clearly not in ...
4 years, 3 months ago (2016-09-08 18:08:13 UTC) #13
Randy Smith (Not in Mondays)
Matt: I resurrected this old CL over the break and brought it up to what ...
3 years, 11 months ago (2017-01-03 21:09:08 UTC) #23
Randy Smith (Not in Mondays)
Arggh, didn't include the Reviewers change. Matt: PTAL? Actual contentful message in c#23 :-J.
3 years, 11 months ago (2017-01-03 21:09:58 UTC) #25
mmenke
Two quick related comments, in an old patch set. Going to continue looking at this ...
3 years, 11 months ago (2017-01-03 21:28:22 UTC) #28
mmenke
Worth noting that it looks like priority changes aren't hooked up to H2 proxy sockets ...
3 years, 11 months ago (2017-01-03 22:51:22 UTC) #31
Randy Smith (Not in Mondays)
I've updated http://crbug.com/166689 with the list of things I think need to happen following this ...
3 years, 11 months ago (2017-01-05 03:47:18 UTC) #44
mmenke
Sorry for slowness, still haven't looked at tests. Kinda buried under reviews this week. Doesn't ...
3 years, 11 months ago (2017-01-05 20:18:35 UTC) #45
Randy Smith (Not in Mondays)
Two quick responses, longer response later: On 2017/01/05 20:18:35, mmenke wrote: > Sorry for slowness, ...
3 years, 11 months ago (2017-01-05 20:28:36 UTC) #46
mmenke
On 2017/01/05 20:28:36, Randy Smith - Not in Mondays wrote: > Two quick responses, longer ...
3 years, 11 months ago (2017-01-05 20:49:56 UTC) #47
Randy Smith (Not in Mondays)
On 2017/01/05 20:49:56, mmenke wrote: > On 2017/01/05 20:28:36, Randy Smith - Not in Mondays ...
3 years, 11 months ago (2017-01-05 22:08:04 UTC) #48
mmenke
On 2017/01/05 22:08:04, Randy Smith - Not in Mondays wrote: > On 2017/01/05 20:49:56, mmenke ...
3 years, 11 months ago (2017-01-05 22:10:56 UTC) #49
mmenke
https://codereview.chromium.org/1898133002/diff/280001/net/http/http_stream_factory_impl_unittest.cc File net/http/http_stream_factory_impl_unittest.cc (right): https://codereview.chromium.org/1898133002/diff/280001/net/http/http_stream_factory_impl_unittest.cc#newcode1518 net/http/http_stream_factory_impl_unittest.cc:1518: // may be called on a stream request after ...
3 years, 11 months ago (2017-01-06 20:48:55 UTC) #50
Randy Smith (Not in Mondays)
On 2017/01/05 20:18:35, mmenke wrote: > https://codereview.chromium.org/1898133002/diff/280001/net/http/http_stream_factory_impl_job.cc#newcode326 > net/http/http_stream_factory_impl_job.cc:326: // make sure the above race ...
3 years, 11 months ago (2017-01-13 00:47:50 UTC) #51
mmenke
On 2017/01/13 00:47:50, Randy Smith - Not in Mondays wrote: > On 2017/01/05 20:18:35, mmenke ...
3 years, 11 months ago (2017-01-13 02:39:09 UTC) #52
mmenke
On 2017/01/13 02:39:09, mmenke wrote: > On 2017/01/13 00:47:50, Randy Smith - Not in Mondays ...
3 years, 11 months ago (2017-01-13 16:57:57 UTC) #53
Randy Smith (Not in Mondays)
Matt: I *think* I've responded on all the threads we had up in the air, ...
3 years, 11 months ago (2017-01-13 23:05:44 UTC) #56
mmenke
Response to comments. Not going to do a pass today, plan on one tomorrow, though ...
3 years, 11 months ago (2017-01-17 18:56:31 UTC) #59
Randy Smith (Not in Mondays)
Charles, could you weigh in on the below as well if you care? https://codereview.chromium.org/1898133002/diff/220001/net/socket/client_socket_pool_base.cc File ...
3 years, 11 months ago (2017-01-17 19:50:36 UTC) #62
Randy Smith (Not in Mondays)
Charles, could you weigh in on the below as well if you care?
3 years, 11 months ago (2017-01-17 19:50:41 UTC) #63
Charlie Harrison
https://codereview.chromium.org/1898133002/diff/220001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/1898133002/diff/220001/net/socket/client_socket_pool_base.cc#newcode1434 net/socket/client_socket_pool_base.cc:1434: } On 2017/01/17 19:50:36, Randy Smith - Not in ...
3 years, 11 months ago (2017-01-17 20:04:39 UTC) #64
mmenke
https://codereview.chromium.org/1898133002/diff/220001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/1898133002/diff/220001/net/socket/client_socket_pool_base.cc#newcode1434 net/socket/client_socket_pool_base.cc:1434: } On 2017/01/17 20:04:39, Charlie Harrison wrote: > On ...
3 years, 11 months ago (2017-01-17 20:11:29 UTC) #65
Randy Smith (Not in Mondays)
On 2017/01/17 20:11:29, mmenke wrote: > https://codereview.chromium.org/1898133002/diff/220001/net/socket/client_socket_pool_base.cc > File net/socket/client_socket_pool_base.cc (right): > > https://codereview.chromium.org/1898133002/diff/220001/net/socket/client_socket_pool_base.cc#newcode1434 > ...
3 years, 11 months ago (2017-01-17 20:14:51 UTC) #66
mmenke
On 2017/01/17 20:14:51, Randy Smith - Not in Mondays wrote: > On 2017/01/17 20:11:29, mmenke ...
3 years, 11 months ago (2017-01-17 20:19:30 UTC) #67
mmenke
On 2017/01/17 20:19:30, mmenke wrote: > On 2017/01/17 20:14:51, Randy Smith - Not in Mondays ...
3 years, 11 months ago (2017-01-17 20:21:32 UTC) #68
Randy Smith (Not in Mondays)
On 2017/01/17 20:21:32, mmenke wrote: > On 2017/01/17 20:19:30, mmenke wrote: > > On 2017/01/17 ...
3 years, 11 months ago (2017-01-17 21:08:14 UTC) #69
mmenke
On 2017/01/17 21:08:14, Randy Smith - Not in Mondays wrote: > On 2017/01/17 20:21:32, mmenke ...
3 years, 11 months ago (2017-01-17 21:53:40 UTC) #70
mmenke
https://codereview.chromium.org/1898133002/diff/300001/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/1898133002/diff/300001/net/http/http_stream_factory_impl_job.cc#newcode324 net/http/http_stream_factory_impl_job.cc:324: // is null. suggest a blank comment between both ...
3 years, 11 months ago (2017-01-18 20:37:27 UTC) #71
Randy Smith (Not in Mondays)
Matt, PTAL? Adam, would you comment on the value of having stalled_request_{queue,map}_ in websockets_transport_client_socket_pool take ...
3 years, 11 months ago (2017-01-22 21:37:01 UTC) #74
Adam Rice
https://codereview.chromium.org/1898133002/diff/300001/net/socket/websocket_transport_client_socket_pool.cc File net/socket/websocket_transport_client_socket_pool.cc (right): https://codereview.chromium.org/1898133002/diff/300001/net/socket/websocket_transport_client_socket_pool.cc#newcode402 net/socket/websocket_transport_client_socket_pool.cc:402: // connect job. On 2017/01/22 21:37:00, Randy Smith (OOO ...
3 years, 11 months ago (2017-01-23 02:26:34 UTC) #82
mmenke
LGTM!
3 years, 11 months ago (2017-01-23 16:44:16 UTC) #83
mmenke
Oops, forgot to publish this yesterday (Though as you're out, may not matter). LGTM. https://codereview.chromium.org/1898133002/diff/340001/net/http/http_stream_factory_impl_unittest.cc ...
3 years, 11 months ago (2017-01-24 17:30:34 UTC) #84
Randy Smith (Not in Mondays)
Thanks! Wow, landing a CL after 10 months. I don't even think that's a record. ...
3 years, 10 months ago (2017-02-16 23:22:18 UTC) #85
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1898133002/380001
3 years, 10 months ago (2017-02-16 23:23:49 UTC) #88
commit-bot: I haz the power
3 years, 10 months ago (2017-02-17 02:23:02 UTC) #91
Message was sent while issue was closed.
Committed patchset #19 (id:380001) as
https://chromium.googlesource.com/chromium/src/+/29dbad12b55c8d2d520b26987735...

Powered by Google App Engine
This is Rietveld 408576698