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

Unified Diff: net/dns/dns_config_service.cc

Issue 10826212: [net/dns] Hardcode DnsConfig.timeout to 1 second. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/dns/dns_config_service_posix.cc » ('j') | net/dns/dns_config_service_posix.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_config_service.cc
diff --git a/net/dns/dns_config_service.cc b/net/dns/dns_config_service.cc
index f17e32b73048a08a4ec84f2ac1c84eeb2ef1795c..cf7797a9b052d2bfb89a1829b675a5082343b37a 100644
--- a/net/dns/dns_config_service.cc
+++ b/net/dns/dns_config_service.cc
@@ -11,11 +11,12 @@
namespace net {
-// Default values are taken from glibc resolv.h.
+// Default values are taken from glibc resolv.h except timeout which is set to
+// 1 second to match Windows.
DnsConfig::DnsConfig()
: append_to_multi_label_name(true),
ndots(1),
- timeout(base::TimeDelta::FromSeconds(5)),
+ timeout(base::TimeDelta::FromSeconds(1)),
attempts(2),
rotate(false),
edns0(false) {}
« no previous file with comments | « no previous file | net/dns/dns_config_service_posix.cc » ('j') | net/dns/dns_config_service_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698