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

Issue 10826212: [net/dns] Hardcode DnsConfig.timeout to 1 second. (Closed)

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

Description

[net/dns] Hardcode DnsConfig.timeout to 1 second. Currently, it is read from OS (if available) or set to 5 seconds (on Windows). In some cases the OS provides ridiculous values (30s on Mac). This change hard-codes the timeout to 1 second, which is the default used by getaddrinfo on Windows and Mac. BUG=124437 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151626

Patch Set 1 #

Total comments: 2

Patch Set 2 : responded to review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M net/dns/dns_config_service.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M net/dns/dns_config_service.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M net/dns/dns_config_service_posix.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
szym
8 years, 4 months ago (2012-08-08 21:39:44 UTC) #1
cbentzel
http://codereview.chromium.org/10826212/diff/1/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): http://codereview.chromium.org/10826212/diff/1/net/dns/dns_config_service_posix.cc#newcode62 net/dns/dns_config_service_posix.cc:62: config->timeout = base::TimeDelta::FromSeconds(1); min of timeout and 1 second? ...
8 years, 4 months ago (2012-08-09 20:29:07 UTC) #2
szym
http://codereview.chromium.org/10826212/diff/1/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): http://codereview.chromium.org/10826212/diff/1/net/dns/dns_config_service_posix.cc#newcode62 net/dns/dns_config_service_posix.cc:62: config->timeout = base::TimeDelta::FromSeconds(1); On 2012/08/09 20:29:08, cbentzel wrote: > ...
8 years, 4 months ago (2012-08-09 20:59:29 UTC) #3
cbentzel
On 2012/08/09 20:59:29, szym wrote: > http://codereview.chromium.org/10826212/diff/1/net/dns/dns_config_service_posix.cc > File net/dns/dns_config_service_posix.cc (right): > > http://codereview.chromium.org/10826212/diff/1/net/dns/dns_config_service_posix.cc#newcode62 > ...
8 years, 4 months ago (2012-08-09 21:21:13 UTC) #4
szym
We currently have a histogram for the total time of DnsTransaction (AsyncDNS.TransactionSuccess is directly comparable ...
8 years, 4 months ago (2012-08-09 21:24:30 UTC) #5
mmenke
On 2012/08/09 21:24:30, szym wrote: > We currently have a histogram for the total time ...
8 years, 4 months ago (2012-08-09 21:45:39 UTC) #6
szym
On 2012/08/09 21:45:39, Matt Menke wrote: > On 2012/08/09 21:24:30, szym wrote: > > We ...
8 years, 4 months ago (2012-08-09 21:48:37 UTC) #7
cbentzel
I was more curious about a histogram of the specified retry time at the time ...
8 years, 4 months ago (2012-08-10 08:58:16 UTC) #8
szym
On 2012/08/10 08:58:16, cbentzel wrote: > I was more curious about a histogram of the ...
8 years, 4 months ago (2012-08-13 22:45:12 UTC) #9
cbentzel
LGTM You can do it in a separate CL
8 years, 4 months ago (2012-08-14 22:16:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/10826212/1004
8 years, 4 months ago (2012-08-14 22:24:21 UTC) #11
commit-bot: I haz the power
8 years, 4 months ago (2012-08-15 01:26:46 UTC) #12
Change committed as 151626

Powered by Google App Engine
This is Rietveld 408576698