bug 746731 - nsHttpConnection::mIdleTimeout initialization fixes r=honzab

This commit is contained in:
Patrick McManus 2012-04-24 15:12:06 -04:00
parent d15eaf6ba5
commit fec2a5c2d2

View File

@ -73,6 +73,7 @@ using namespace mozilla::net;
nsHttpConnection::nsHttpConnection()
: mTransaction(nsnull)
, mIdleTimeout(0)
, mConsiderReusedAfterInterval(0)
, mConsiderReusedAfterEpoch(0)
, mCurrentBytesRead(0)
@ -821,7 +822,7 @@ nsHttpConnection::OnHeadersAvailable(nsAHttpTransaction *trans,
if (cp)
mIdleTimeout = PR_SecondsToInterval((PRUint32) atoi(cp + 8));
else
mIdleTimeout = gHttpHandler->SpdyTimeout();
mIdleTimeout = gHttpHandler->IdleTimeout();
cp = PL_strcasestr(val, "max=");
if (cp) {