зеркало из https://github.com/mozilla/pjs.git
bug 746731 - nsHttpConnection::mIdleTimeout initialization fixes r=honzab
This commit is contained in:
Родитель
537cebad78
Коммит
359086e3fe
|
@ -73,6 +73,7 @@ using namespace mozilla::net;
|
||||||
|
|
||||||
nsHttpConnection::nsHttpConnection()
|
nsHttpConnection::nsHttpConnection()
|
||||||
: mTransaction(nsnull)
|
: mTransaction(nsnull)
|
||||||
|
, mIdleTimeout(0)
|
||||||
, mConsiderReusedAfterInterval(0)
|
, mConsiderReusedAfterInterval(0)
|
||||||
, mConsiderReusedAfterEpoch(0)
|
, mConsiderReusedAfterEpoch(0)
|
||||||
, mCurrentBytesRead(0)
|
, mCurrentBytesRead(0)
|
||||||
|
@ -821,7 +822,7 @@ nsHttpConnection::OnHeadersAvailable(nsAHttpTransaction *trans,
|
||||||
if (cp)
|
if (cp)
|
||||||
mIdleTimeout = PR_SecondsToInterval((PRUint32) atoi(cp + 8));
|
mIdleTimeout = PR_SecondsToInterval((PRUint32) atoi(cp + 8));
|
||||||
else
|
else
|
||||||
mIdleTimeout = gHttpHandler->SpdyTimeout();
|
mIdleTimeout = gHttpHandler->IdleTimeout();
|
||||||
|
|
||||||
cp = PL_strcasestr(val, "max=");
|
cp = PL_strcasestr(val, "max=");
|
||||||
if (cp) {
|
if (cp) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче