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

Issue 51683002: [Net] Assert that URLRequests with LOAD_IGNORE_LIMITS have MAXIMUM_PRIORITY (Closed)

Created:
7 years, 1 month ago by akalin
Modified:
7 years, 1 month ago
CC:
chromium-reviews, asanka, michaeln, cbentzel+watch_chromium.org, benjhayden+dwatch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

[Net] Assert that URLRequests with LOAD_IGNORE_LIMITS have MAXIMUM_PRIORITY Also remove the priority juggling in ClientSocketPoolBaseHelper, and instead assert that any requests with ignore_limits = true also has priority = MAXIMUM_PRIORITY. BUG=166689 R=asanka@chromium.org, gene@chromium.org, jamesr@chromium.org, joaodasilva@chromium.org, mmenke@chromium.org, simonjam@chromium.org TBR=benm@chromium.org, jamesr@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232802 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234964

Patch Set 1 #

Total comments: 11

Patch Set 2 : Rebase onto 51953002 #

Total comments: 4

Patch Set 3 : Fix compile errors #

Patch Set 4 : Rebase and address comments #

Patch Set 5 : Address comments #

Total comments: 14

Patch Set 6 : Address comments #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -318 lines) Patch
M android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/chrome_fraudulent_certificate_reporter.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/net/http_pipelining_compatibility_client.cc View 1 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/policy/url_blacklist_manager_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M cloud_print/service/service_state.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 5 chunks +13 lines, -4 lines 0 comments Download
M content/browser/loader/resource_scheduler.cc View 1 2 3 4 5 2 chunks +8 lines, -1 line 0 comments Download
M net/ocsp/nss_ocsp.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 2 3 4 5 3 chunks +16 lines, -9 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 1 2 3 4 5 6 111 chunks +165 lines, -268 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request.h View 1 3 chunks +11 lines, -4 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 2 chunks +22 lines, -0 lines 0 comments Download
M net/url_request/url_request_ftp_job.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M net/url_request/url_request_throttler_unittest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 6 chunks +30 lines, -5 lines 0 comments Download
M webkit/browser/appcache/appcache_update_job.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
akalin
+mmenke for overall review +mnissler for chrome/browser/policy OWNERS +scottbyer for cloud_print OWNERS +asanka for content/browser/download ...
7 years, 1 month ago (2013-10-29 23:27:59 UTC) #1
akalin
+mmenke for overall review +mnissler for chrome/browser/policy OWNERS +scottbyer for cloud_print OWNERS +asanka for content/browser/download ...
7 years, 1 month ago (2013-10-29 23:27:59 UTC) #2
akalin
-mnissler, +joaodasilva
7 years, 1 month ago (2013-10-29 23:28:39 UTC) #3
James Simonsen
I'm curious what motivated this. We already have code in Blink that makes synchronous requests ...
7 years, 1 month ago (2013-10-29 23:33:12 UTC) #4
akalin
On 2013/10/29 23:33:12, James Simonsen wrote: > I'm curious what motivated this. We already have ...
7 years, 1 month ago (2013-10-29 23:37:21 UTC) #5
mmenke
On 2013/10/29 23:37:21, akalin wrote: > On 2013/10/29 23:33:12, James Simonsen wrote: > > I'm ...
7 years, 1 month ago (2013-10-29 23:44:17 UTC) #6
James Simonsen
On 2013/10/29 23:37:21, akalin wrote: > So in ResourceDispatcherHostImpl::BeginRequest, if sync_result is non-NULL, does > ...
7 years, 1 month ago (2013-10-30 00:12:02 UTC) #7
mmenke
https://codereview.chromium.org/51683002/diff/1/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/51683002/diff/1/net/socket/client_socket_pool_base.cc#newcode1276 net/socket/client_socket_pool_base.cc:1276: pending_requests_.Insert(request.release(), priority); Shouldn't we be calling InsertAtFront if ignore_limits ...
7 years, 1 month ago (2013-10-30 15:54:59 UTC) #8
akalin
PTAL https://codereview.chromium.org/51683002/diff/1/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/51683002/diff/1/net/socket/client_socket_pool_base.cc#newcode1276 net/socket/client_socket_pool_base.cc:1276: pending_requests_.Insert(request.release(), priority); On 2013/10/30 15:54:59, mmenke wrote: > ...
7 years, 1 month ago (2013-10-30 23:32:16 UTC) #9
akalin
On 2013/10/30 00:12:02, James Simonsen wrote: > On 2013/10/29 23:37:21, akalin wrote: > > So ...
7 years, 1 month ago (2013-10-30 23:32:40 UTC) #10
James Simonsen
On 2013/10/30 23:32:40, akalin wrote: > On 2013/10/30 00:12:02, James Simonsen wrote: > > On ...
7 years, 1 month ago (2013-10-30 23:43:53 UTC) #11
akalin
On 2013/10/30 23:43:53, James Simonsen wrote: > On 2013/10/30 23:32:40, akalin wrote: > > On ...
7 years, 1 month ago (2013-10-31 00:13:07 UTC) #12
akalin
also +benm for android_webview/ OWNERS also +gene for cloud_print/ OWNERS
7 years, 1 month ago (2013-10-31 00:13:42 UTC) #13
gene
On 2013/10/31 00:13:42, akalin wrote: > also +benm for android_webview/ OWNERS > also +gene for ...
7 years, 1 month ago (2013-10-31 00:52:31 UTC) #14
Joao da Silva
policy lgtm
7 years, 1 month ago (2013-10-31 07:26:03 UTC) #15
asanka
/download/ lgtm
7 years, 1 month ago (2013-10-31 15:17:58 UTC) #16
mmenke
https://codereview.chromium.org/51683002/diff/1/net/socket/client_socket_pool_base_unittest.cc File net/socket/client_socket_pool_base_unittest.cc (right): https://codereview.chromium.org/51683002/diff/1/net/socket/client_socket_pool_base_unittest.cc#newcode106 net/socket/client_socket_pool_base_unittest.cc:106: bool ignore_limits() { return behavior_ == IGNORE_LIMITS; } On ...
7 years, 1 month ago (2013-10-31 15:37:26 UTC) #17
akalin
PTAL! https://codereview.chromium.org/51683002/diff/1/net/socket/client_socket_pool_base_unittest.cc File net/socket/client_socket_pool_base_unittest.cc (right): https://codereview.chromium.org/51683002/diff/1/net/socket/client_socket_pool_base_unittest.cc#newcode106 net/socket/client_socket_pool_base_unittest.cc:106: bool ignore_limits() { return behavior_ == IGNORE_LIMITS; } ...
7 years, 1 month ago (2013-11-01 07:02:46 UTC) #18
mmenke
So...there's still at least one way to set IGNORE_LIMITS on a lower priority request: InitSocketHandleForRawConnect ...
7 years, 1 month ago (2013-11-01 15:47:59 UTC) #19
akalin
Per our chat, Init...RawConnect always uses 0 for load flags, and the other functions are ...
7 years, 1 month ago (2013-11-01 18:50:14 UTC) #20
akalin
simonjam, ping? Do the layout tests look okay?
7 years, 1 month ago (2013-11-01 18:50:30 UTC) #21
mmenke
https://codereview.chromium.org/51683002/diff/1130001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/51683002/diff/1130001/content/browser/loader/resource_scheduler.cc#newcode276 content/browser/loader/resource_scheduler.cc:276: if ((request->url_request()->load_flags() & net::LOAD_IGNORE_LIMITS) != 0) { optional nit: ...
7 years, 1 month ago (2013-11-01 19:06:38 UTC) #22
James Simonsen
lgtm Yeah, they're all red, but clicking through they seem to all be flakes.
7 years, 1 month ago (2013-11-01 20:28:38 UTC) #23
akalin
ptal https://codereview.chromium.org/51683002/diff/1130001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/51683002/diff/1130001/content/browser/loader/resource_scheduler.cc#newcode276 content/browser/loader/resource_scheduler.cc:276: if ((request->url_request()->load_flags() & net::LOAD_IGNORE_LIMITS) != 0) { On ...
7 years, 1 month ago (2013-11-01 23:15:51 UTC) #24
mmenke
LGTM
7 years, 1 month ago (2013-11-04 15:47:41 UTC) #25
akalin
tbring
7 years, 1 month ago (2013-11-04 21:16:03 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/51683002/180016
7 years, 1 month ago (2013-11-04 21:18:35 UTC) #27
akalin
Committed patchset #6 manually as r232802 (presubmit successful).
7 years, 1 month ago (2013-11-04 21:18:36 UTC) #28
commit-bot: I haz the power
Failed to apply patch for android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-04 21:18:43 UTC) #29
jamesr
webkit/ lgtm
7 years, 1 month ago (2013-11-04 22:34:18 UTC) #30
dglazkov
I am pretty sure this is causing DCHECKs on Canaries: http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20Blink&showExpectations=true&tests=http%2Ftests%2Fxmlhttprequest%2Fsync-after-async-same-resource.html Please look into this, ...
7 years, 1 month ago (2013-11-04 23:11:38 UTC) #31
akalin
On 2013/11/04 23:11:38, Dimitri Glazkov wrote: > I am pretty sure this is causing DCHECKs ...
7 years, 1 month ago (2013-11-04 23:33:55 UTC) #32
akalin
On 2013/11/04 23:33:55, akalin wrote: > On 2013/11/04 23:11:38, Dimitri Glazkov wrote: > > I ...
7 years, 1 month ago (2013-11-04 23:45:27 UTC) #33
James Simonsen
On 2013/11/04 23:45:27, akalin wrote: > On 2013/11/04 23:33:55, akalin wrote: > > On 2013/11/04 ...
7 years, 1 month ago (2013-11-04 23:56:43 UTC) #34
Joao da Silva
Fred, should this issue be closed? Looks like it was already committed but it's still ...
7 years, 1 month ago (2013-11-13 08:31:50 UTC) #35
akalin
On 2013/11/13 08:31:50, Joao da Silva wrote: > Fred, should this issue be closed? Looks ...
7 years, 1 month ago (2013-11-13 08:32:18 UTC) #36
akalin
7 years, 1 month ago (2013-11-14 00:00:14 UTC) #37
Message was sent while issue was closed.
Committed patchset #7 manually as r234964 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698