From 359086e3fe7ffa60dc69cfd0613f3ff247e32051 Mon Sep 17 00:00:00 2001 From: Patrick McManus Date: Tue, 24 Apr 2012 15:12:06 -0400 Subject: [PATCH] bug 746731 - nsHttpConnection::mIdleTimeout initialization fixes r=honzab --- netwerk/protocol/http/nsHttpConnection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netwerk/protocol/http/nsHttpConnection.cpp b/netwerk/protocol/http/nsHttpConnection.cpp index c3e4203e2d7..0fe8ef6dedb 100644 --- a/netwerk/protocol/http/nsHttpConnection.cpp +++ b/netwerk/protocol/http/nsHttpConnection.cpp @@ -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) {