зеркало из https://github.com/mozilla/pjs.git
fixes bug 223861 "default value of network.dnsCacheExpiration should be reduced" r=dougt sr=brendan
This commit is contained in:
Родитель
11501c5627
Коммит
c05c73250e
|
@ -279,7 +279,7 @@ nsDNSService::Init()
|
|||
|
||||
// prefs
|
||||
PRUint32 maxCacheEntries = 20;
|
||||
PRUint32 maxCacheLifetime = 5; // minutes
|
||||
PRUint32 maxCacheLifetime = 1; // minutes
|
||||
PRBool enableIDN = PR_TRUE;
|
||||
|
||||
// read prefs
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
//----------------------------------------------------------------------------
|
||||
|
||||
#define MAX_THREADS 8
|
||||
#define IDLE_TIMEOUT PR_SecondsToInterval(5)
|
||||
#define IDLE_TIMEOUT PR_SecondsToInterval(60)
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
|
@ -226,11 +226,13 @@ HostDB_ClearEntry(PLDHashTable *table,
|
|||
void *iter = nsnull;
|
||||
PRNetAddr addr;
|
||||
char buf[64];
|
||||
do {
|
||||
for (;;) {
|
||||
iter = PR_EnumerateAddrInfo(iter, he->rec->addrinfo, 0, &addr);
|
||||
if (!iter)
|
||||
break;
|
||||
PR_NetAddrToString(&addr, buf, sizeof(buf));
|
||||
LOG((" %s\n", buf));
|
||||
} while (iter);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
NS_RELEASE(he->rec);
|
||||
|
|
Загрузка…
Ссылка в новой задаче