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

Issue 1778933002: DNS: Per-network-type and Finch-variable timeouts (Closed)

Created:
4 years, 9 months ago by Deprecated (see juliatuttle)
Modified:
4 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DNS: Per-network-type and Finch-variable timeouts Right now, our DNS timeouts are fixed (6 seconds between calls to thehost resolver, 1 second default retransmission timeout for the internalresolver, and 5 second maximum even with exponential backoff). Thisworks okay on some network types, but could be a lot more patient on some types (e.g. 2G cell networks). This CL makes these timeouts configurable via field trials, after which I willexperiment and find optimal values for each network type, and then bake in some per-type defaults. Note that this modifies the behavior of the async resolver in some cases: if the right field trial is enabled, it will reset accumulated RTT stats whenever the network *type* changes, not just when the IP address changes (i.e. the device switches networks entirely). BUG=595352 Committed: https://crrev.com/cf1158bf589956c2d20180de6feed0c8334db8a0 Cr-Commit-Position: refs/heads/master@{#381991}

Patch Set 1 #

Patch Set 2 : Fix a few things #

Patch Set 3 : Fix signedness @$%^!@#$. #

Patch Set 4 : Really fix gdig. #

Patch Set 5 : Get initial/max async DNS timeouts in DnsSession, not HostResolverImpl #

Patch Set 6 : Make several small improvements. #

Patch Set 7 : Fix unittests. #

Patch Set 8 : Fix NaCl build issue? #

Total comments: 14

Patch Set 9 : Make requested changes. #

Patch Set 10 : Make more requested changes. #

Patch Set 11 : Add field trial to control ServerStats flush on ConnectionType change #

Patch Set 12 : Fix dumb mistakes #

Total comments: 1

Patch Set 13 : Remove change to gdig. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -30 lines) Patch
M net/dns/dns_config_service.h View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M net/dns/dns_config_service.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M net/dns/dns_config_service_posix.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/dns/dns_session.h View 1 2 3 4 5 chunks +14 lines, -2 lines 0 comments Download
M net/dns/dns_session.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +46 lines, -14 lines 0 comments Download
M net/dns/dns_session_unittest.cc View 1 2 3 4 5 6 1 chunk +9 lines, -7 lines 0 comments Download
M net/dns/dns_util.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M net/dns/dns_util.cc View 1 2 3 4 5 6 7 8 2 chunks +40 lines, -0 lines 0 comments Download
M net/dns/host_resolver_impl.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M net/dns/host_resolver_impl.cc View 1 2 3 4 5 6 7 8 9 5 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 20 (7 generated)
Randy Smith (Not in Mondays)
Ok, a couple of high level questions (and nits I happened to notice when wandering ...
4 years, 9 months ago (2016-03-15 20:12:30 UTC) #2
Deprecated (see juliatuttle)
https://codereview.chromium.org/1778933002/diff/140001/net/dns/dns_util.cc File net/dns/dns_util.cc (right): https://codereview.chromium.org/1778933002/diff/140001/net/dns/dns_util.cc#newcode163 net/dns/dns_util.cc:163: NetworkChangeNotifier::ConnectionType type_int, On 2016/03/15 20:12:30, Randy Smith - Not ...
4 years, 9 months ago (2016-03-16 16:45:30 UTC) #3
Deprecated (see juliatuttle)
PTAL, rdsmith. On 2016/03/15 20:12:30, Randy Smith - Not in Fridays wrote: > Ok, a ...
4 years, 9 months ago (2016-03-16 16:48:02 UTC) #4
Randy Smith (Not in Mondays)
On 2016/03/16 16:45:30, Julia Tuttle (deprecated) wrote: > https://codereview.chromium.org/1778933002/diff/140001/net/dns/dns_util.cc > File net/dns/dns_util.cc (right): > > ...
4 years, 9 months ago (2016-03-16 19:47:48 UTC) #6
Randy Smith (Not in Mondays)
On 2016/03/16 16:48:02, Julia Tuttle (deprecated) wrote: > PTAL, rdsmith. > > On 2016/03/15 20:12:30, ...
4 years, 9 months ago (2016-03-16 19:57:39 UTC) #7
Randy Smith (Not in Mondays)
This looks basically fine to me, but I'd like to have the CL description say ...
4 years, 9 months ago (2016-03-16 20:11:07 UTC) #8
Randy Smith (Not in Mondays)
https://codereview.chromium.org/1778933002/diff/140001/net/dns/dns_session.cc File net/dns/dns_session.cc (right): https://codereview.chromium.org/1778933002/diff/140001/net/dns/dns_session.cc#newcode151 net/dns/dns_session.cc:151: InitializeServerStats(); Actually, on my third (:-}) read-through I realize ...
4 years, 9 months ago (2016-03-16 20:15:03 UTC) #9
Deprecated (see juliatuttle)
PTAL, rdsmith. Would you like me to add a separate field trial for "please do/do ...
4 years, 9 months ago (2016-03-17 16:29:46 UTC) #10
Randy Smith (Not in Mondays)
On 2016/03/16 20:11:07, Randy Smith - Not in Fridays wrote: > This looks basically fine ...
4 years, 9 months ago (2016-03-17 21:52:28 UTC) #12
Randy Smith (Not in Mondays)
LGTM conditional on mentioning the gdig.cc change in the CL description (or putting it in ...
4 years, 9 months ago (2016-03-17 21:58:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778933002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778933002/240001
4 years, 9 months ago (2016-03-18 16:32:27 UTC) #16
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 9 months ago (2016-03-18 16:37:55 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 16:40:11 UTC) #20
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/cf1158bf589956c2d20180de6feed0c8334db8a0
Cr-Commit-Position: refs/heads/master@{#381991}

Powered by Google App Engine
This is Rietveld 408576698