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

Issue 15927019: net: Socket pools prioritize requests with ignore_limits (Closed)

Created:
7 years, 6 months ago by mmenke
Modified:
7 years, 6 months ago
Reviewers:
eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

net: Socket pools prioritize requests with ignore_limits. Also, when a socket request is cancelled when there are more ConnectJobs than socket requests for a group, no ConnectJobs are cancelled. These two changes are needed to prevent a lockup due to a socket created for sync XHR's socket being giving to another socket request of equal or higher priority. This issue may well still exist with SPDY sessions. BUG=155536 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205491

Patch Set 1 #

Patch Set 2 : Remove bonus spaces. #

Total comments: 8

Patch Set 3 : Response to comments #

Patch Set 4 : Small comment fix #

Total comments: 5

Patch Set 5 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -14 lines) Patch
M net/socket/client_socket_pool_base.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 2 3 4 4 chunks +33 lines, -9 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 1 2 4 chunks +171 lines, -5 lines 0 comments Download
M net/socket/socket_test_util.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mmenke
Simonjam's patch to increase the priority of sync requests can still run into the problem ...
7 years, 6 months ago (2013-06-03 19:44:47 UTC) #1
eroman
lgtm https://codereview.chromium.org/15927019/diff/12001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/15927019/diff/12001/net/socket/client_socket_pool_base.cc#newcode195 net/socket/client_socket_pool_base.cc:195: // If not ignoring the socket pool limits, ...
7 years, 6 months ago (2013-06-04 20:42:21 UTC) #2
mmenke
Thanks for the feedback! Just out of paranoia, probably best if you review the comparison ...
7 years, 6 months ago (2013-06-05 04:32:24 UTC) #3
eroman
lgtm https://codereview.chromium.org/15927019/diff/25002/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/15927019/diff/25002/net/socket/client_socket_pool_base.cc#newcode45 net/socket/client_socket_pool_base.cc:45: // Requests with |ignore_limits| set have higher effective ...
7 years, 6 months ago (2013-06-10 17:48:00 UTC) #4
mmenke
https://codereview.chromium.org/15927019/diff/25002/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/15927019/diff/25002/net/socket/client_socket_pool_base.cc#newcode45 net/socket/client_socket_pool_base.cc:45: // Requests with |ignore_limits| set have higher effective pririoty ...
7 years, 6 months ago (2013-06-10 18:17:26 UTC) #5
eroman
https://codereview.chromium.org/15927019/diff/25002/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/15927019/diff/25002/net/socket/client_socket_pool_base.cc#newcode219 net/socket/client_socket_pool_base.cc:219: CompareEffectiveRequestPriority(*r, *(*it)) <= 0) { On 2013/06/10 18:17:26, mmenke ...
7 years, 6 months ago (2013-06-10 18:31:49 UTC) #6
mmenke1
On 2013/06/10 18:31:49, eroman wrote: > https://codereview.chromium.org/15927019/diff/25002/net/socket/client_socket_pool_base.cc > File net/socket/client_socket_pool_base.cc (right): > > https://codereview.chromium.org/15927019/diff/25002/net/socket/client_socket_pool_base.cc#newcode219 > ...
7 years, 6 months ago (2013-06-10 18:34:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/15927019/32001
7 years, 6 months ago (2013-06-10 18:35:15 UTC) #8
commit-bot: I haz the power
7 years, 6 months ago (2013-06-11 11:06:34 UTC) #9
Message was sent while issue was closed.
Change committed as 205491

Powered by Google App Engine
This is Rietveld 408576698