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

Issue 1138833003: Reduce frequency of IPv6 probes in HostResolverImpl. (Closed)

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

Description

Reduce frequency of IPv6 probes in HostResolverImpl. Currently HostResolverImpl tries to probe IPv6 support for every Resolve() request, i.e. very often. The probe is implemented using a dummy UDP socket. This doesn't look efficient because IPv6 state doesn't change often. Also this change will decrease frequency of the crash in the linked bug. In that bug the root cause is that on OSX system certificate library may close recently created file descriptors it doesn't own. Not creating dummy UDP sockets very often will help to avoid hitting this bug in the OS very often. BUG=481163 Committed: https://crrev.com/b8cdc219c478bde98b36acebcc859f1785a90119 Cr-Commit-Position: refs/heads/master@{#329885}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -12 lines) Patch
M net/dns/host_resolver_impl.h View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download
M net/dns/host_resolver_impl.cc View 1 2 3 7 chunks +38 lines, -11 lines 0 comments Download
M net/dns/host_resolver_impl_unittest.cc View 1 2 3 3 chunks +32 lines, -0 lines 0 comments Download
M net/log/test_net_log_entry.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M net/log/test_net_log_entry.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (3 generated)
Sergey Ulanov
5 years, 7 months ago (2015-05-11 23:02:59 UTC) #2
mmenke
Paul: Mind taking this one? https://codereview.chromium.org/1138833003/diff/1/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc (right): https://codereview.chromium.org/1138833003/diff/1/net/dns/host_resolver_impl.cc#newcode2197 net/dns/host_resolver_impl.cc:2197: NetLog::BoolCallback("ipv6_available", ipv6_available)); Think this ...
5 years, 7 months ago (2015-05-12 14:39:59 UTC) #4
Sergey Ulanov
https://codereview.chromium.org/1138833003/diff/1/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc (right): https://codereview.chromium.org/1138833003/diff/1/net/dns/host_resolver_impl.cc#newcode2197 net/dns/host_resolver_impl.cc:2197: NetLog::BoolCallback("ipv6_available", ipv6_available)); On 2015/05/12 14:39:59, mmenke wrote: > Think ...
5 years, 7 months ago (2015-05-12 19:22:24 UTC) #5
davidben
(Tiny drive-by description nit: system SSL library -> system certificate library. We have our own ...
5 years, 7 months ago (2015-05-12 20:18:43 UTC) #6
pauljensen
Can you add a test for this? Like just checking that two successive calls return ...
5 years, 7 months ago (2015-05-13 13:00:23 UTC) #7
Sergey Ulanov
On 2015/05/13 13:00:23, pauljensen wrote: > Can you add a test for this? Like just ...
5 years, 7 months ago (2015-05-13 17:16:03 UTC) #8
mmenke
On 2015/05/13 17:16:03, Sergey Ulanov wrote: > On 2015/05/13 13:00:23, pauljensen wrote: > > Can ...
5 years, 7 months ago (2015-05-13 17:22:44 UTC) #9
Sergey Ulanov
On 2015/05/13 13:00:23, pauljensen wrote: > Can you add a test for this? Like just ...
5 years, 7 months ago (2015-05-13 18:15:59 UTC) #10
pauljensen
On 2015/05/13 18:15:59, Sergey Ulanov wrote: > On 2015/05/13 13:00:23, pauljensen wrote: > > Can ...
5 years, 7 months ago (2015-05-13 18:25:26 UTC) #11
Sergey Ulanov
PTAL, added a unittest now
5 years, 7 months ago (2015-05-13 18:45:21 UTC) #12
pauljensen
lgtm
5 years, 7 months ago (2015-05-14 13:32:28 UTC) #13
pauljensen
And further, thanks for doing this! I think the whole IPv6 probing is more-or-less an ...
5 years, 7 months ago (2015-05-14 13:36:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1138833003/60001
5 years, 7 months ago (2015-05-14 17:46:45 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-14 18:50:50 UTC) #17
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/b8cdc219c478bde98b36acebcc859f1785a90119 Cr-Commit-Position: refs/heads/master@{#329885}
5 years, 7 months ago (2015-05-14 18:51:28 UTC) #18
Sergey Ulanov
5 years, 7 months ago (2015-05-14 22:15:26 UTC) #19
Message was sent while issue was closed.
BUG= is incorrect on this cl :(
correct bug link: crbug.com/461246

Powered by Google App Engine
This is Rietveld 408576698