From 5c20da8b6cfe7a1fffc43be4dda077f50034cd63 Mon Sep 17 00:00:00 2001 From: "Dragana Damjanovic dd.mozilla@gmail.com" Date: Mon, 15 Jan 2018 08:20:00 -0800 Subject: [PATCH] Bug 1425097 - We do not to close h2 connection in case one stream gets 425. r=mcmanus --HG-- extra : rebase_source : c4b2a5633fbe74a9dfa4be419f0444cbc3eda234 --- netwerk/protocol/http/nsHttpTransaction.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netwerk/protocol/http/nsHttpTransaction.cpp b/netwerk/protocol/http/nsHttpTransaction.cpp index 326f463233ff..28ce61eac99d 100644 --- a/netwerk/protocol/http/nsHttpTransaction.cpp +++ b/netwerk/protocol/http/nsHttpTransaction.cpp @@ -1665,6 +1665,9 @@ nsHttpTransaction::HandleContentStart() if ((mEarlyDataDisposition == EARLY_425) && !mDoNotTryEarlyData) { mDoNotTryEarlyData = true; mForceRestart = true; // force restart has built in loop protection + if (mConnection->Version() = HTTP_VERSION_2) { + mReuseOnRestart = true; + } return NS_ERROR_NET_RESET; } break;