summaryrefslogtreecommitdiffstats
path: root/net/tools/hresolv/hresolv.cc
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 03:45:39 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 03:45:39 +0000
commit68ad3eeffee6a1e4972b099bffdef17b7d99624d (patch)
treef7f51c2f3eab08b753c09747da4c0643d56efda6 /net/tools/hresolv/hresolv.cc
parentb3c9564b04438c11e46807ddb5dec21bb2dd50d7 (diff)
downloadchromium_src-68ad3eeffee6a1e4972b099bffdef17b7d99624d.zip
chromium_src-68ad3eeffee6a1e4972b099bffdef17b7d99624d.tar.gz
chromium_src-68ad3eeffee6a1e4972b099bffdef17b7d99624d.tar.bz2
Add mechanism for global queueing and prioritization of DNS.
Currently this limit is very high (50), but it can be tuned through a variable. BUG=9598 TEST= HostResolverImplTest.HigherPriorityRequestsStartedFirst HostResolverImplTest.CancelPendingRequest HostResolverImplTest.QueueOverflow Review URL: http://codereview.chromium.org/542086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37608 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools/hresolv/hresolv.cc')
-rw-r--r--net/tools/hresolv/hresolv.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tools/hresolv/hresolv.cc b/net/tools/hresolv/hresolv.cc
index f865a53..f092703 100644
--- a/net/tools/hresolv/hresolv.cc
+++ b/net/tools/hresolv/hresolv.cc
@@ -446,7 +446,7 @@ int main(int argc, char** argv) {
base::TimeDelta::FromSeconds(0));
scoped_refptr<net::HostResolver> host_resolver(
- new net::HostResolverImpl(NULL, cache, NULL));
+ new net::HostResolverImpl(NULL, cache, NULL, 100u));
ResolverInvoker invoker(host_resolver.get());
invoker.ResolveAll(hosts_and_times, options.async);