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

Issue 137493008: Retry HttpNetworkTransactions upon receipt of ERR_NETWORK_CHANGED during host resolution and …

Created:
6 years, 11 months ago by pauljensen
Modified:
6 years, 1 month ago
Reviewers:
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Retry HttpNetworkTransactions upon receipt of ERR_NETWORK_CHANGED during host resolution and connecting. By limiting the retrying to only during host resolution and connecting we avoid ever duplicating request side-effects. BUG=166593, 249346

Patch Set 1 : #

Patch Set 2 : Flush task queue before restart #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -2 lines) Patch
M net/http/http_network_transaction.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 chunks +17 lines, -1 line 0 comments Download
M net/http/http_request_info.h View 1 chunk +6 lines, -0 lines 0 comments Download
M net/http/http_request_info.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/url_request/url_fetcher_core.cc View 1 chunk +4 lines, -0 lines 1 comment Download
M net/url_request/url_request.h View 2 chunks +17 lines, -0 lines 1 comment Download
M net/url_request/url_request.cc View 2 chunks +5 lines, -0 lines 1 comment Download
M net/url_request/url_request_http_job.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
pauljensen
Matt, What do you think of the general idea here? If you like the idea ...
6 years, 10 months ago (2014-01-28 17:48:18 UTC) #1
mmenke
On 2014/01/28 17:48:18, pauljensen wrote: > Matt, What do you think of the general idea ...
6 years, 10 months ago (2014-01-28 17:58:15 UTC) #2
pauljensen
On 2014/01/28 17:58:15, mmenke wrote: > On 2014/01/28 17:48:18, pauljensen wrote: > > Matt, What ...
6 years, 10 months ago (2014-01-30 03:46:20 UTC) #3
pauljensen
On 2014/01/30 03:46:20, pauljensen wrote: > On 2014/01/28 17:58:15, mmenke wrote: > > On 2014/01/28 ...
6 years, 10 months ago (2014-02-06 03:49:04 UTC) #4
mmenke
On 2014/02/06 03:49:04, pauljensen wrote: > On 2014/01/30 03:46:20, pauljensen wrote: > > On 2014/01/28 ...
6 years, 10 months ago (2014-02-06 15:08:31 UTC) #5
mmenke
On 2014/02/06 15:08:31, mmenke wrote: > On 2014/02/06 03:49:04, pauljensen wrote: > > On 2014/01/30 ...
6 years, 10 months ago (2014-02-13 17:24:09 UTC) #6
mmenke
So sorry for slowness... Was completely focused on two M34 issues, and kind of dropped ...
6 years, 10 months ago (2014-02-13 20:13:03 UTC) #7
mmenke
6 years, 10 months ago (2014-02-13 20:20:16 UTC) #8
Some tiny nits.

https://codereview.chromium.org/137493008/diff/130001/net/url_request/url_fet...
File net/url_request/url_fetcher_core.cc (right):

https://codereview.chromium.org/137493008/diff/130001/net/url_request/url_fet...
net/url_request/url_fetcher_core.cc:526: if (max_retries_on_network_changes_)
I think it's weird to have two ways to do this.  Admittedly, this implementation
will re-send requests, even rePOSTing if needed, but I'm not a huge fan of
having two mechanisms to do this.  May not have a choice, though.  Should look
at callsites, I think.

https://codereview.chromium.org/137493008/diff/130001/net/url_request/url_req...
File net/url_request/url_request.cc (right):

https://codereview.chromium.org/137493008/diff/130001/net/url_request/url_req...
net/url_request/url_request.cc:51: const int
kDefaultMaxAutomaticRetriesOnNetworkChanges = 3;
Think it's a bit confusing to have max retries, instead of max tries.  I think
it's ambiguous if the first try a "retry" or not?  Your comment here makes it
clear, but best not to have to duplicate it everywhere.

https://codereview.chromium.org/137493008/diff/130001/net/url_request/url_req...
File net/url_request/url_request.h (right):

https://codereview.chromium.org/137493008/diff/130001/net/url_request/url_req...
net/url_request/url_request.h:692: int
max_automatic_retries_on_network_changes() const {
Don't think we need an accessor, for now.  Not a huge deal, just prefer to
minimize public APIs until we know they're needed.

Powered by Google App Engine
This is Rietveld 408576698