bug 807441 increase stickiness of dns choices r=josh

This commit is contained in:
Patrick McManus 2012-12-20 15:51:11 -05:00
parent a01693a7e5
commit 203865e660

View File

@ -535,10 +535,11 @@ nsHostResolver::ResolveHost(const char *host,
result = he->rec;
Telemetry::Accumulate(Telemetry::DNS_LOOKUP_METHOD2, METHOD_HIT);
// For entries that are in the grace period, or all cached
// negative entries, use the cache but start a new lookup in
// For entries that are in the grace period with a failed connect,
// or all cached negative entries, use the cache but start a new lookup in
// the background
if (((NowInMinutes() > he->rec->expiration) ||
if ((((NowInMinutes() > he->rec->expiration) &&
he->rec->mBlacklistedItems.Length()) ||
he->rec->negative) && !he->rec->resolving) {
LOG(("Using %s cache entry for host [%s] but starting async renewal.",
he->rec->negative ? "negative" :"positive", host));