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

Issue 2690393005: Cap the delay time for the main job when racing with QUIC for delayed (Closed)

Created:
3 years, 10 months ago by Zhongyi Shi
Modified:
3 years, 10 months ago
Reviewers:
Jana, Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cap the delay time for the main job when racing with QUIC for delayed tcp case so that if http_server_properties has cached a inappropriate srtt will not block the main job for a extremely long time. BUG=691688 Review-Url: https://codereview.chromium.org/2690393005 Cr-Commit-Position: refs/heads/master@{#451066} Committed: https://chromium.googlesource.com/chromium/src/+/326a7fdb3a840dd926b4b4ff14ca7fe24d87ffc0

Patch Set 1 #

Total comments: 2

Patch Set 2 : add comments #

Total comments: 9

Patch Set 3 : use test task runner with a mock timer to verify ResumeMainJob(s) are invoked at the right time #

Total comments: 2

Patch Set 4 : remove invoke methods on Resume() expectations #

Total comments: 3

Patch Set 5 : sync with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -27 lines) Patch
M net/http/http_stream_factory_impl_job_controller.cc View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller_unittest.cc View 1 2 3 6 chunks +89 lines, -25 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
Zhongyi Shi
Let me know if the 3 seconds makes sense in this case.
3 years, 10 months ago (2017-02-15 20:35:46 UTC) #3
Jana
lgtm One nit, but LGTM otherwise. https://codereview.chromium.org/2690393005/diff/20001/net/http/http_stream_factory_impl_job_controller_unittest.cc File net/http/http_stream_factory_impl_job_controller_unittest.cc (right): https://codereview.chromium.org/2690393005/diff/20001/net/http/http_stream_factory_impl_job_controller_unittest.cc#newcode989 net/http/http_stream_factory_impl_job_controller_unittest.cc:989: job_controller_, base::TimeDelta::FromSeconds(3))), Readability ...
3 years, 10 months ago (2017-02-15 22:08:27 UTC) #4
Zhongyi Shi
https://codereview.chromium.org/2690393005/diff/20001/net/http/http_stream_factory_impl_job_controller_unittest.cc File net/http/http_stream_factory_impl_job_controller_unittest.cc (right): https://codereview.chromium.org/2690393005/diff/20001/net/http/http_stream_factory_impl_job_controller_unittest.cc#newcode989 net/http/http_stream_factory_impl_job_controller_unittest.cc:989: job_controller_, base::TimeDelta::FromSeconds(3))), On 2017/02/15 22:08:26, Jana wrote: > Readability ...
3 years, 10 months ago (2017-02-15 22:20:01 UTC) #5
Ryan Hamilton
Thanks for doing this. Jana: are you cool with a 3 second limit here? https://codereview.chromium.org/2690393005/diff/40001/net/http/http_stream_factory_impl_job_controller.cc ...
3 years, 10 months ago (2017-02-15 22:26:55 UTC) #6
Jana
Ryan, given that we'd want to make sure to give time for handshake retransmissions, 3 ...
3 years, 10 months ago (2017-02-15 22:30:14 UTC) #7
Zhongyi Shi
Using test task runner with a mock timer to verify the ResumeMainJob is invoked at ...
3 years, 10 months ago (2017-02-15 23:32:33 UTC) #8
Ryan Hamilton
lgtm NICE! The tests are so much clearer now. Thanks! https://codereview.chromium.org/2690393005/diff/60001/net/http/http_stream_factory_impl_job_controller_unittest.cc File net/http/http_stream_factory_impl_job_controller_unittest.cc (right): https://codereview.chromium.org/2690393005/diff/60001/net/http/http_stream_factory_impl_job_controller_unittest.cc#newcode930 ...
3 years, 10 months ago (2017-02-15 23:37:58 UTC) #9
Zhongyi Shi
Thanks for helping the code review, landing now. https://codereview.chromium.org/2690393005/diff/60001/net/http/http_stream_factory_impl_job_controller_unittest.cc File net/http/http_stream_factory_impl_job_controller_unittest.cc (right): https://codereview.chromium.org/2690393005/diff/60001/net/http/http_stream_factory_impl_job_controller_unittest.cc#newcode930 net/http/http_stream_factory_impl_job_controller_unittest.cc:930: base::TimeDelta::FromMicroseconds(15)))); ...
3 years, 10 months ago (2017-02-16 00:19:44 UTC) #10
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/2690393005/80001
3 years, 10 months ago (2017-02-16 00:20:42 UTC) #13
Ryan Hamilton
https://codereview.chromium.org/2690393005/diff/80001/net/http/http_stream_factory_impl_job_controller_unittest.cc File net/http/http_stream_factory_impl_job_controller_unittest.cc (left): https://codereview.chromium.org/2690393005/diff/80001/net/http/http_stream_factory_impl_job_controller_unittest.cc#oldcode927 net/http/http_stream_factory_impl_job_controller_unittest.cc:927: &JobControllerPeer::VerifyWaitingTimeForMainJob, job_controller_, Do we need this method any more? ...
3 years, 10 months ago (2017-02-16 00:30:58 UTC) #14
Zhongyi Shi
https://codereview.chromium.org/2690393005/diff/80001/net/http/http_stream_factory_impl_job_controller_unittest.cc File net/http/http_stream_factory_impl_job_controller_unittest.cc (left): https://codereview.chromium.org/2690393005/diff/80001/net/http/http_stream_factory_impl_job_controller_unittest.cc#oldcode927 net/http/http_stream_factory_impl_job_controller_unittest.cc:927: &JobControllerPeer::VerifyWaitingTimeForMainJob, job_controller_, On 2017/02/16 00:30:58, Ryan Hamilton wrote: > ...
3 years, 10 months ago (2017-02-16 00:33:38 UTC) #15
Ryan Hamilton
lgtm https://codereview.chromium.org/2690393005/diff/80001/net/http/http_stream_factory_impl_job_controller_unittest.cc File net/http/http_stream_factory_impl_job_controller_unittest.cc (left): https://codereview.chromium.org/2690393005/diff/80001/net/http/http_stream_factory_impl_job_controller_unittest.cc#oldcode927 net/http/http_stream_factory_impl_job_controller_unittest.cc:927: &JobControllerPeer::VerifyWaitingTimeForMainJob, job_controller_, On 2017/02/16 00:33:38, Zhongyi Shi wrote: ...
3 years, 10 months ago (2017-02-16 00:39:26 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/171146)
3 years, 10 months ago (2017-02-16 01:08:21 UTC) #18
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/2690393005/100001
3 years, 10 months ago (2017-02-16 04:20:05 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromium_presubmit on ...
3 years, 10 months ago (2017-02-16 06:22:33 UTC) #23
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/2690393005/100001
3 years, 10 months ago (2017-02-16 18:29:18 UTC) #25
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 19:55:09 UTC) #28
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/326a7fdb3a840dd926b4b4ff14ca...

Powered by Google App Engine
This is Rietveld 408576698