From 2649e3c385f1f05e7b27fd2c7cc16e8b97296660 Mon Sep 17 00:00:00 2001 From: Patrick McManus Date: Mon, 13 Oct 2014 20:51:50 -0400 Subject: [PATCH] bug 1082261 - http 421 retry r=hurley --- netwerk/protocol/http/nsHttpTransaction.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/netwerk/protocol/http/nsHttpTransaction.cpp b/netwerk/protocol/http/nsHttpTransaction.cpp index 161f8fcb377..6065b8f1560 100644 --- a/netwerk/protocol/http/nsHttpTransaction.cpp +++ b/netwerk/protocol/http/nsHttpTransaction.cpp @@ -1450,8 +1450,10 @@ nsHttpTransaction::HandleContentStart() LOG(("Not Authoritative.\n")); gHttpHandler->ConnMgr()-> ClearHostMapping(mConnInfo->GetHost(), mConnInfo->Port()); - mForceRestart = true; } + // retry on a new connection - just in case + mCaps &= ~NS_HTTP_ALLOW_KEEPALIVE; + mForceRestart = true; // force restart has built in loop protection break; }