mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 746731 - nsHttpConnection::mIdleTimeout initialization fixes r=honzab
This commit is contained in:
parent
d15eaf6ba5
commit
fec2a5c2d2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user