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

Issue 1903263002: DNS: Expose stale results through HostResolverImpl. (Closed)

Created:
4 years, 8 months ago by Julia Tuttle
Modified:
4 years, 6 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@dns_stale1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DNS: Expose stale results through HostResolverImpl. Once the HostCache exposes stale results, plumb them through the HostResolverImpl for callers who want them. BUG=605138 Committed: https://crrev.com/9fb7aebfa1f3b6576ab0d26333936489b300ac16 Cr-Commit-Position: refs/heads/master@{#398109}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Total comments: 4

Patch Set 8 : Clarify interface. #

Patch Set 9 : rebase #

Total comments: 14

Patch Set 10 : Make requested changes, plus some others. #

Patch Set 11 : rebase #

Total comments: 9

Patch Set 12 : Make a few more changes #

Patch Set 13 : rebase #

Total comments: 6

Patch Set 14 : rebase, update comments, tighten DCHECKs, remove ResolveStale() #

Patch Set 15 : Add unittest for ResolveStaleFromCache. #

Patch Set 16 : rebase #

Patch Set 17 : Remove ResolveStaleFromCache from HostResolver but not Impl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -25 lines) Patch
M net/dns/host_resolver.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +9 lines, -9 lines 0 comments Download
M net/dns/host_resolver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -1 line 0 comments Download
M net/dns/host_resolver_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +30 lines, -4 lines 0 comments Download
M net/dns/host_resolver_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +62 lines, -9 lines 0 comments Download
M net/dns/host_resolver_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +48 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (8 generated)
Julia Tuttle
PTAL, rdsmith. Unittests are still pending; feel free to ignore until they're ready if you ...
4 years, 8 months ago (2016-04-26 02:13:43 UTC) #3
Randy Smith (Not in Mondays)
My primary concerns here are about the interface (there isn't a lot of code in ...
4 years, 7 months ago (2016-04-28 16:29:56 UTC) #4
Julia Tuttle
PTAL. https://codereview.chromium.org/1903263002/diff/120001/net/dns/host_resolver.h File net/dns/host_resolver.h (right): https://codereview.chromium.org/1903263002/diff/120001/net/dns/host_resolver.h#newcode168 net/dns/host_resolver.h:168: // (Defaults to calling |ResolveFromCache()| if not overridden.) ...
4 years, 7 months ago (2016-04-29 17:34:47 UTC) #5
Randy Smith (Not in Mondays)
Tests? https://codereview.chromium.org/1903263002/diff/160001/net/dns/host_resolver.cc File net/dns/host_resolver.cc (right): https://codereview.chromium.org/1903263002/diff/160001/net/dns/host_resolver.cc#newcode134 net/dns/host_resolver.cc:134: *stale_addresses = *addresses; I wince a bit at ...
4 years, 7 months ago (2016-05-04 19:47:00 UTC) #6
Julia Tuttle
PTAL. Neither of us noticed that ResolveStaleFromCache wasn't setting stale_info in the literal/hosts/localhost cases, so ...
4 years, 7 months ago (2016-05-05 15:42:54 UTC) #7
Randy Smith (Not in Mondays)
On 2016/05/05 15:42:54, Julia Tuttle wrote: > PTAL. > > Neither of us noticed that ...
4 years, 7 months ago (2016-05-05 20:43:26 UTC) #8
Randy Smith (Not in Mondays)
Sorry, now I see you responded to my tests question, but in the CL description ...
4 years, 7 months ago (2016-05-07 01:36:31 UTC) #9
Julia Tuttle
PTAL, rdsmith. https://codereview.chromium.org/1903263002/diff/200001/net/dns/host_resolver.cc File net/dns/host_resolver.cc (right): https://codereview.chromium.org/1903263002/diff/200001/net/dns/host_resolver.cc#newcode112 net/dns/host_resolver.cc:112: stale_info->stale_hits = 0u; On 2016/05/07 01:36:31, Randy ...
4 years, 7 months ago (2016-05-11 20:19:49 UTC) #10
Randy Smith (Not in Mondays)
Next round of comments. I think we're pretty close (modulo tests). https://codereview.chromium.org/1903263002/diff/200001/net/dns/host_resolver.h File net/dns/host_resolver.h (right): ...
4 years, 7 months ago (2016-05-17 20:39:35 UTC) #11
Julia Tuttle
PTAL, rdsmith. (Still need to write tests.) https://codereview.chromium.org/1903263002/diff/240001/net/dns/host_resolver.cc File net/dns/host_resolver.cc (right): https://codereview.chromium.org/1903263002/diff/240001/net/dns/host_resolver.cc#newcode133 net/dns/host_resolver.cc:133: *stale_error = ...
4 years, 7 months ago (2016-05-20 17:54:43 UTC) #12
Julia Tuttle
I added a unittest for HostResolverImpl::ResolveStaleFromCache. PTAL, rdsmith.
4 years, 7 months ago (2016-05-23 17:07:58 UTC) #14
Randy Smith (Not in Mondays)
Ok. I'm good with this as written, so LGTM. But :-J. My personal favorite resolution ...
4 years, 7 months ago (2016-05-23 20:36:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1903263002/320001
4 years, 6 months ago (2016-06-06 20:11:37 UTC) #19
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 6 months ago (2016-06-06 20:16:45 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 20:17:44 UTC) #23
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/9fb7aebfa1f3b6576ab0d26333936489b300ac16
Cr-Commit-Position: refs/heads/master@{#398109}

Powered by Google App Engine
This is Rietveld 408576698