From f9be4e4d22f01bbadee52fab3e18bf496f7f528a Mon Sep 17 00:00:00 2001 From: Patrick McManus Date: Wed, 9 Jul 2014 18:06:12 -0400 Subject: [PATCH] bug 1037082 - part 1/3 dont doauthretry with closed persistent connection r=hurley --- netwerk/protocol/http/nsHttpConnection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwerk/protocol/http/nsHttpConnection.h b/netwerk/protocol/http/nsHttpConnection.h index 1dfc61198b21..18b9a01f68e7 100644 --- a/netwerk/protocol/http/nsHttpConnection.h +++ b/netwerk/protocol/http/nsHttpConnection.h @@ -123,7 +123,7 @@ public: nsIAsyncInputStream **, nsIAsyncOutputStream **); void GetSecurityInfo(nsISupports **); - bool IsPersistent() { return IsKeepAlive(); } + bool IsPersistent() { return IsKeepAlive() && !mDontReuse; } bool IsReused(); void SetIsReusedAfter(uint32_t afterMilliseconds); nsresult PushBack(const char *data, uint32_t length);