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

Issue 113904: Work around linux resolver problem where changes to resolv.conf go unnoticed in some distributions. (Closed)

Created:
11 years, 7 months ago by Craig Schlenter
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Work around linux resolver problem where changes to resolv.conf go unnoticed in some distributions. BUG=11380 TEST=Start chrome with empty resolv.conf, fix resolv.conf; chrome should be able to resolve sites.

Patch Set 1 #

Patch Set 2 : check return from res_init #

Total comments: 2

Patch Set 3 : Fixes as per Evan's review #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M net/base/host_resolver.cc View 1 2 2 chunks +10 lines, -0 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
Evan Martin
Darin says that this is the right fix. I just have stylistic concerns. http://codereview.chromium.org/113904/diff/3/1002 File ...
11 years, 7 months ago (2009-05-27 17:30:43 UTC) #1
Craig Schlenter
On 2009/05/27 17:30:43, Evan Martin wrote: > Darin says that this is the right fix. ...
11 years, 7 months ago (2009-05-27 18:21:39 UTC) #2
Evan Martin
LGTM, will commit
11 years, 7 months ago (2009-05-27 18:24:21 UTC) #3
darin (slow to review)
http://codereview.chromium.org/113904/diff/2001/3001 File net/base/host_resolver.cc (right): http://codereview.chromium.org/113904/diff/2001/3001#newcode81 Line 81: if (err && !res_init()) please use res_ninit instead, ...
11 years, 7 months ago (2009-05-27 19:23:11 UTC) #4
Evan Martin
Upon more thought, we should probably follow Mozilla more closely (including the timeout behavior). I ...
11 years, 7 months ago (2009-05-27 19:31:45 UTC) #5
Evan Martin
Craig: http://code.google.com/p/chromium/issues/detail?id=12740
11 years, 7 months ago (2009-05-27 19:35:34 UTC) #6
Craig Schlenter
11 years, 7 months ago (2009-05-27 19:49:18 UTC) #7
> http://codereview.chromium.org/113904/diff/2001/3001#newcode81
> Line 81: if (err && !res_init())
> please use res_ninit instead, which is threadsafe.

Ah, yes ... thanks for spotting that. I have commented in the bug Evan created
and will fix tomorrow after some more reading.

Thank you.

Powered by Google App Engine
This is Rietveld 408576698