bump cookie limit from 1000 to 3000 to reduce occurrence of cookie purges. b=444600, r+sr=mconnor, a=dveditz

git-svn-id: svn://10.0.0.236/trunk@256082 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dwitte%stanford.edu 2009-02-04 02:17:52 +00:00
parent 9a139513ea
commit 1ba8d158fa
2 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ static const char kOldCookieFileName[] = "cookies.txt";
// default limits for the cookie list. these can be tuned by the
// network.cookie.maxNumber and network.cookie.maxPerHost prefs respectively.
static const PRUint32 kMaxNumberOfCookies = 1000;
static const PRUint32 kMaxNumberOfCookies = 3000;
static const PRUint32 kMaxCookiesPerHost = 50;
static const PRUint32 kMaxBytesPerCookie = 4096;
static const PRUint32 kMaxBytesPerPath = 1024;

View File

@ -762,9 +762,9 @@ main(PRInt32 argc, char *argv[])
rv[0] = CheckResult(cookie.get(), MUST_EQUAL, expected.get());
// test that cookies are evicted by order of lastAccessed time, if the limit on total cookies
// (1000) is reached
// (3000) is reached
nsCAutoString host;
for (PRInt32 i = 0; i < 1010; ++i) {
for (PRInt32 i = 0; i < 3010; ++i) {
host = NS_LITERAL_CSTRING("http://eviction.");
host.AppendInt(i);
host += NS_LITERAL_CSTRING(".tests/");
@ -793,7 +793,7 @@ main(PRInt32 argc, char *argv[])
PRInt32 numInts = PR_sscanf(domain.get(), "eviction.%ld.tests", &hostNumber);
if (numInts != 1 || hostNumber < 10) break;
}
rv[2] = i == 1000;
rv[2] = i == 3000;
allTestsPassed = PrintResult(rv, 3) && allTestsPassed;