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

Issue 564052: Turn off ipv6 when there is no support at startup.... (Closed)

Created:
10 years, 10 months ago by jar (doing other things)
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Turn off ipv6 when there is no support at startup. IPv6 confusion (attempt to support when it is really not supported) has been harming performance, and this may help *some* users that don't have ipv6 support. BUG=12754 r=wtc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=38078

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -0 lines) Patch
M net/base/host_resolver_impl.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M net/base/host_resolver_proc.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M net/base/host_resolver_proc.cc View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jar (doing other things)
10 years, 10 months ago (2010-02-04 01:11:09 UTC) #1
wtc
LGTM, with the following changes. http://codereview.chromium.org/564052/diff/10/1004 File net/base/host_resolver_proc.cc (right): http://codereview.chromium.org/564052/diff/10/1004#newcode233 net/base/host_resolver_proc.cc:233: bool HostResolverProc::Ipv6Supported() { This ...
10 years, 10 months ago (2010-02-04 01:39:12 UTC) #2
wtc
I forgot to note: This is a sad day for IPv6. All that hard work ...
10 years, 10 months ago (2010-02-04 01:50:39 UTC) #3
jar (doing other things)
Several changes made per our discussion. http://codereview.chromium.org/564052/diff/10/1004 File net/base/host_resolver_proc.cc (right): http://codereview.chromium.org/564052/diff/10/1004#newcode233 net/base/host_resolver_proc.cc:233: bool HostResolverProc::Ipv6Supported() { ...
10 years, 10 months ago (2010-02-04 02:54:30 UTC) #4
darin (slow to review)
One thing that occurs to me: What if the user switches between an IPv6 network ...
10 years, 10 months ago (2010-02-04 05:29:15 UTC) #5
jar (doing other things)
I think Will Chan was putting in a "network change" notifier, and that would probably ...
10 years, 10 months ago (2010-02-04 08:24:11 UTC) #6
darin (slow to review)
On Thu, Feb 4, 2010 at 12:23 AM, Jim Roskind <jar@chromium.org> wrote: > I think ...
10 years, 10 months ago (2010-02-04 08:31:24 UTC) #7
willchan no longer on Chromium
On Thu, Feb 4, 2010 at 12:31 AM, Darin Fisher <darin@chromium.org> wrote: > On Thu, ...
10 years, 10 months ago (2010-02-04 15:59:52 UTC) #8
eroman
I am concerned by this change. (1) This isn't a reliable way to detect IPv6 ...
10 years, 10 months ago (2010-02-04 19:52:54 UTC) #9
eroman
I spoke with Jim in person, and I am at ease with this now. The ...
10 years, 10 months ago (2010-02-04 21:40:08 UTC) #10
darin (slow to review)
10 years, 10 months ago (2010-02-04 21:59:47 UTC) #11
On 2/4/10, eroman@chromium.org <eroman@chromium.org> wrote:
> I am concerned by this change.
>
>  (1)
>  This isn't a reliable way to detect IPv6 support.
>
>  I've tried this sort of detection in the past in order to be able to enable
> IPv6
>  tests on the buildbots. See:
>
>     http://codereview.chromium.org/114061/diff/1003/6
>
>  What I found is there is a wide range of platform differences (even just on
> our
>  buildbots). On most linux systems, this test will pretty much always pass,
> even
>  though the system does not support IPv6. For example, while that would
> pass,
>  doing a getaddrinfo with an IPv6 literal would fail.

This change was inspired by what NSPR does to probe for IPv6.  Note:
NSPR only does this probing on Windows and OSX (from my reading of the
source).

It seems reasonable to match Firefox's behavior as a starting point.
I'm sure we could do better, but this has to be better than nothing,
and at least it moves us to something that is known to be reasonable
for Firefox.

-Darin


>
>  http://codereview.chromium.org/564052
>

Powered by Google App Engine
This is Rietveld 408576698