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

Issue 1088513004: Don't probe for IPv6 connectivity when resolving IPv6 literals. (Closed)

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

Description

Don't probe for IPv6 connectivity when resolving IPv6 literals. When the requester of a host resolution doesn't specify IPv4-only (i.e. when it's safe to do so) HostResolverImpl should be successfully resolving IPv6 literals. BUG=428280 Committed: https://crrev.com/19eb734235f5c40970d8fd7f5958a8672d115d63 Cr-Commit-Position: refs/heads/master@{#325338}

Patch Set 1 #

Total comments: 2

Patch Set 2 : parse IP address once #

Total comments: 10

Patch Set 3 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -16 lines) Patch
M net/dns/host_resolver_impl.h View 1 4 chunks +4 lines, -0 lines 0 comments Download
M net/dns/host_resolver_impl.cc View 1 2 8 chunks +32 lines, -16 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1088513004/1
5 years, 8 months ago (2015-04-13 16:36:40 UTC) #2
mmenke
https://codereview.chromium.org/1088513004/diff/1/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc (right): https://codereview.chromium.org/1088513004/diff/1/net/dns/host_resolver_impl.cc#newcode2167 net/dns/host_resolver_impl.cc:2167: !ParseIPLiteralToNumber(info.hostname(), &ip_number)) { Wonder if it'd be cleaner just ...
5 years, 8 months ago (2015-04-13 16:43:51 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/55903)
5 years, 8 months ago (2015-04-13 16:52:00 UTC) #6
pauljensen
I reworked it to call ParseIPLiteralToNumber just once. It's a fair bit more code but ...
5 years, 8 months ago (2015-04-15 01:29:29 UTC) #7
pauljensen
I'll take a stab at adding a test tomorrow (hopefully). Feel free to hold off ...
5 years, 8 months ago (2015-04-15 01:41:21 UTC) #8
mmenke
https://codereview.chromium.org/1088513004/diff/20001/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc (right): https://codereview.chromium.org/1088513004/diff/20001/net/dns/host_resolver_impl.cc#newcode1887 net/dns/host_resolver_impl.cc:1887: ip_number_ptr = &ip_number; Is all this necessary? Couldn't we ...
5 years, 8 months ago (2015-04-15 01:47:12 UTC) #9
pauljensen
https://codereview.chromium.org/1088513004/diff/20001/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc (right): https://codereview.chromium.org/1088513004/diff/20001/net/dns/host_resolver_impl.cc#newcode1887 net/dns/host_resolver_impl.cc:1887: ip_number_ptr = &ip_number; On 2015/04/15 01:47:12, mmenke wrote: > ...
5 years, 8 months ago (2015-04-15 12:11:10 UTC) #10
mmenke
https://codereview.chromium.org/1088513004/diff/20001/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc (right): https://codereview.chromium.org/1088513004/diff/20001/net/dns/host_resolver_impl.cc#newcode1887 net/dns/host_resolver_impl.cc:1887: ip_number_ptr = &ip_number; On 2015/04/15 12:11:10, pauljensen wrote: > ...
5 years, 8 months ago (2015-04-15 16:16:58 UTC) #11
pauljensen
https://codereview.chromium.org/1088513004/diff/20001/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc (right): https://codereview.chromium.org/1088513004/diff/20001/net/dns/host_resolver_impl.cc#newcode2052 net/dns/host_resolver_impl.cc:2052: default_address_family_ == ADDRESS_FAMILY_IPV4) { On 2015/04/15 16:16:57, mmenke wrote: ...
5 years, 8 months ago (2015-04-15 18:59:54 UTC) #12
mmenke
LGTM https://codereview.chromium.org/1088513004/diff/20001/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc (right): https://codereview.chromium.org/1088513004/diff/20001/net/dns/host_resolver_impl.cc#newcode2052 net/dns/host_resolver_impl.cc:2052: default_address_family_ == ADDRESS_FAMILY_IPV4) { On 2015/04/15 18:59:54, pauljensen ...
5 years, 8 months ago (2015-04-15 19:03:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1088513004/40001
5 years, 8 months ago (2015-04-15 19:26:13 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-15 23:20:13 UTC) #16
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 23:21:03 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/19eb734235f5c40970d8fd7f5958a8672d115d63
Cr-Commit-Position: refs/heads/master@{#325338}

Powered by Google App Engine
This is Rietveld 408576698