summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-17 21:45:08 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-17 21:45:08 +0000
commit72bceace66b3900860b9128f8d8767d80ddc7e16 (patch)
treeac574afdc0a1e320c58ccb295ce4764469885b32
parenteb8d9b4805f09b3b9c67c897bc22b40599a60693 (diff)
downloadchromium_src-72bceace66b3900860b9128f8d8767d80ddc7e16.zip
chromium_src-72bceace66b3900860b9128f8d8767d80ddc7e16.tar.gz
chromium_src-72bceace66b3900860b9128f8d8767d80ddc7e16.tar.bz2
Disable caching of failed DNS lookups.
This is causing problems on network changes, since we don't have a reliable signal for telling when DNS is back up (so we aren't able to flush the cache properly). This will regress bug 1672, filed 46821 to address that. BUG=46821 Review URL: http://codereview.chromium.org/2873003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50141 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--net/base/host_resolver_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/base/host_resolver_impl.cc b/net/base/host_resolver_impl.cc
index f3bc5c1..c018a7a 100644
--- a/net/base/host_resolver_impl.cc
+++ b/net/base/host_resolver_impl.cc
@@ -45,7 +45,7 @@ HostCache* CreateDefaultCache() {
HostCache* cache = new HostCache(
kMaxHostCacheEntries,
base::TimeDelta::FromMinutes(1),
- base::TimeDelta::FromMinutes(1));
+ base::TimeDelta::FromSeconds(0)); // Disable caching of failed DNS.
return cache;
}