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

Issue 6903061: Linux: Monitor resolv.conf for changes and use that to reload resolver. (Closed)

Created:
9 years, 8 months ago by Craig
Modified:
9 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, szym
Visibility:
Public.

Description

Linux: Monitor resolv.conf for changes and use that to reload resolver. BUG=67734 TEST=manual testing by poking at resolv.conf Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99666

Patch Set 1 #

Patch Set 2 : fix comments, includes #

Patch Set 3 : rebase #

Patch Set 4 : clean and fix #

Patch Set 5 : duh. fpw watches only 1 path. #

Patch Set 6 : rebase #

Total comments: 22

Patch Set 7 : review fixes and minor other tweaks #

Patch Set 8 : add valgrind suppression #

Patch Set 9 : widen suppression like crbug/46161 #

Patch Set 10 : ignore some frames in suppression #

Total comments: 20

Patch Set 11 : review fixups etc. #

Total comments: 16

Patch Set 12 : review fixups #

Patch Set 13 : change NET_API to NET_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -199 lines) Patch
D net/base/dns_reload_timer.h View 1 chunk +0 lines, -22 lines 0 comments Download
D net/base/dns_reload_timer.cc View 1 chunk +0 lines, -100 lines 0 comments Download
A net/base/dns_reloader.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +24 lines, -0 lines 0 comments Download
A net/base/dns_reloader.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +122 lines, -0 lines 0 comments Download
M net/base/dnsrr_resolver.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -13 lines 0 comments Download
M net/base/host_resolver_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -1 line 0 comments Download
M net/base/host_resolver_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +21 lines, -0 lines 0 comments Download
M net/base/host_resolver_proc.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -14 lines 0 comments Download
M net/base/network_change_notifier.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +21 lines, -0 lines 0 comments Download
M net/base/network_change_notifier.cc View 1 2 3 4 5 3 chunks +25 lines, -1 line 0 comments Download
M net/base/network_change_notifier_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +57 lines, -1 line 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 16 chunks +35 lines, -35 lines 0 comments Download
M tools/valgrind/memcheck/suppressions.txt View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +13 lines, -12 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Craig
willchan: would you mind taking a look at this please? It's not ready/finished yet but ...
9 years, 8 months ago (2011-04-27 15:20:43 UTC) #1
Craig
This should be ready for review now. PTAL or suggest someone who can review pls. ...
9 years, 5 months ago (2011-07-12 17:25:39 UTC) #2
willchan no longer on Chromium
Sorry for missing this earlier, I need to take another look. But for now, let's ...
9 years, 5 months ago (2011-07-13 12:10:36 UTC) #3
agl
LGTM I think http://codereview.chromium.org/6903061/diff/17001/net/base/dns_reloader.cc File net/base/dns_reloader.cc (right): http://codereview.chromium.org/6903061/diff/17001/net/base/dns_reloader.cc#newcode1 net/base/dns_reloader.cc:1: // Copyright (c) 2010 The Chromium ...
9 years, 5 months ago (2011-07-13 22:17:48 UTC) #4
willchan no longer on Chromium
http://codereview.chromium.org/6903061/diff/17001/net/base/dns_reloader.cc File net/base/dns_reloader.cc (right): http://codereview.chromium.org/6903061/diff/17001/net/base/dns_reloader.cc#newcode77 net/base/dns_reloader.cc:77: // multiple times. Initialize the ThreadLocalStorage slot only once. ...
9 years, 5 months ago (2011-07-14 15:42:32 UTC) #5
Craig
Thanks for the comments! This is just a quick reply to respond to two of ...
9 years, 5 months ago (2011-07-14 17:23:30 UTC) #6
Craig
Responses to all issues raised are tagged on below. I've also tweaked the valgrind suppressions ...
9 years, 5 months ago (2011-07-18 16:18:12 UTC) #7
willchan no longer on Chromium
LGTM, I think it'd be cool if eroman reviewed this too, but it's fine to ...
9 years, 5 months ago (2011-07-19 15:45:34 UTC) #8
Craig
On 2011/07/19 15:45:34, willchan wrote: > LGTM, I think it'd be cool if eroman reviewed ...
9 years, 5 months ago (2011-07-25 18:00:55 UTC) #9
eroman
General design LGTM. I have some implementation nits: http://codereview.chromium.org/6903061/diff/35002/net/base/dns_reloader.cc File net/base/dns_reloader.cc (right): http://codereview.chromium.org/6903061/diff/35002/net/base/dns_reloader.cc#newcode33 net/base/dns_reloader.cc:33: // ...
9 years, 5 months ago (2011-07-25 20:13:02 UTC) #10
Craig
"quick" response to the openbsd issue below. Thanks for the comments! I'll cleanup the other ...
9 years, 5 months ago (2011-07-26 15:15:31 UTC) #11
eroman
http://codereview.chromium.org/6903061/diff/35002/net/base/dns_reloader.cc File net/base/dns_reloader.cc (right): http://codereview.chromium.org/6903061/diff/35002/net/base/dns_reloader.cc#newcode33 net/base/dns_reloader.cc:33: // OpenBSD does not have thread-safe res_ninit/res_nclose so we ...
9 years, 5 months ago (2011-07-26 16:53:13 UTC) #12
Craig
Still working on this btw. but I am temporarily bogged down with RL issues. I'm ...
9 years, 4 months ago (2011-08-02 04:58:35 UTC) #13
cbentzel
Adding szym to the cc list - he's working on a similar change to watch ...
9 years, 4 months ago (2011-08-02 12:03:47 UTC) #14
Craig
Updated with review fixes (it's rebased too so there is extra noise when compared to ...
9 years, 4 months ago (2011-08-03 19:30:58 UTC) #15
eroman
LGTM. Sorry for keeping you waiting, after coming back from vacation this was buried deep ...
9 years, 4 months ago (2011-08-11 01:57:55 UTC) #16
Craig
Thanks for the review! I've done the necessary cleanups. Sorry for the sloppy code I ...
9 years, 4 months ago (2011-08-15 17:10:56 UTC) #17
Craig
9 years, 3 months ago (2011-09-05 16:14:11 UTC) #18
> From a quick glance at szym's DnsConfigService
> (http://codereview.chromium.org/7518028/), it doesn't look like it is
dependent
> on the changes to NetworkChangeNotifier here so I think holding off committing
> this until the filepathwatcher fix is in should be ok (szym's code will be
> subject to the same symlink issues in filepathwatcher btw. until that is
fixed).

I've just landed an interim filepathwatcher fix now and plan on landing this a
bit later.

(when I rebased now I had to make a trivial fix/change from NET_API ->
NET_EXPORT as that changed in trunk but otherwise the code is unchanged so I'm
assuming I'm still good to commit ... yell if anyone disagrees pls)

Powered by Google App Engine
This is Rietveld 408576698