[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
Review URL: https://chromiumcodereview.appspot.com/10826212
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151626 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/net/dns/dns_config_service.h b/net/dns/dns_config_service.h
index ed056ba..b99babe 100644
--- a/net/dns/dns_config_service.h
+++ b/net/dns/dns_config_service.h
@@ -28,6 +28,10 @@
namespace net {
+// Always use 1 second timeout (followed by binary exponential backoff).
+// TODO(szym): Remove code which reads timeout from system.
+const unsigned kDnsTimeoutSeconds = 1;
+
// DnsConfig stores configuration of the system resolver.
struct NET_EXPORT_PRIVATE DnsConfig {
DnsConfig();