bug 1471156 - double the DNS cache size to 800 entries r?mcmanus draft
authorDaniel Stenberg <daniel@haxx.se>
Tue, 26 Jun 2018 11:39:04 +0200
changeset 810829 048af89fdc651aed59e0d97162886c6017f17e14
parent 810712 ca98b6f47b4e33673291a4dc2a4ebca28ce6db00
push id114125
push userbmo:daniel@haxx.se
push dateTue, 26 Jun 2018 15:48:22 +0000
reviewersmcmanus
bugs1471156
milestone63.0a1
bug 1471156 - double the DNS cache size to 800 entries r?mcmanus ... but leave it at 400 for Android. MozReview-Commit-ID: 1Tni6zWrYNL
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -1991,17 +1991,21 @@ pref("network.IDN.blacklist_chars", "\u0
 // IPv4 only. Works around broken DNS servers which can't handle IPv6 lookups
 // and/or allows the user to disable IPv6 on a per-domain basis. See bug 68796.
 pref("network.dns.ipv4OnlyDomains", "");
 
 // This preference can be used to turn off IPv6 name lookups. See bug 68796.
 pref("network.dns.disableIPv6", false);
 
 // This is the number of dns cache entries allowed
+#ifdef ANDROID
 pref("network.dnsCacheEntries", 400);
+#else
+pref("network.dnsCacheEntries", 800);
+#endif
 
 // In the absence of OS TTLs, the DNS cache TTL value
 pref("network.dnsCacheExpiration", 60);
 
 // Get TTL; not supported on all platforms; nop on the unsupported ones.
 pref("network.dns.get-ttl", true);
 
 // For testing purposes! Makes the native resolver resolve IPv4 "localhost"