Bug 923458 - ProxyAutoConfig::ResolveAddress should make medium priority DNS requests to use negative cache entries r=mcmanus a=lsblakk
authorSteve Workman <sworkman@mozilla.com>
Tue, 19 Nov 2013 11:22:01 -0800
changeset 167542 5b2e09991c01cdb8cbc4f480a1ad1e5a171a01a6
parent 167541 8f1a8bfca0df9282226f7ee9ef63cec302924fa1
child 167543 edc3765d2780b560ff80b9ec8bb45e42ce9ef02e
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcmanus, lsblakk
bugs923458
milestone27.0a2
Bug 923458 - ProxyAutoConfig::ResolveAddress should make medium priority DNS requests to use negative cache entries r=mcmanus a=lsblakk
netwerk/base/src/ProxyAutoConfig.cpp
--- a/netwerk/base/src/ProxyAutoConfig.cpp
+++ b/netwerk/base/src/ProxyAutoConfig.cpp
@@ -341,17 +341,19 @@ ProxyAutoConfig::ResolveAddress(const ns
                                 unsigned int aTimeout)
 {
   nsCOMPtr<nsIDNSService> dns = do_GetService(NS_DNSSERVICE_CONTRACTID);
   if (!dns)
     return false;
 
   nsRefPtr<PACResolver> helper = new PACResolver();
 
-  if (NS_FAILED(dns->AsyncResolve(aHostName, 0, helper,
+  if (NS_FAILED(dns->AsyncResolve(aHostName,
+                                  nsIDNSService::RESOLVE_PRIORITY_MEDIUM,
+                                  helper,
                                   NS_GetCurrentThread(),
                                   getter_AddRefs(helper->mRequest))))
     return false;
 
   if (aTimeout && helper->mRequest) {
     if (!mTimer)
       mTimer = do_CreateInstance(NS_TIMER_CONTRACTID);
     if (mTimer) {