Chromium Code Reviews
DescriptionDNS: 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. #
Messages
Total messages: 20 (7 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||