Bug 1425097 - We do not to close h2 connection in case one stream gets 425. r=mcmanus
authorDragana Damjanovic dd.mozilla@gmail.com
Wed, 17 Jan 2018 06:58:00 +0200
changeset 453967 f1a74cfcfe1a4e126806a7f34335d31fabbceb57
parent 453966 45e97153c83fc5bb2c1ad3c1df33a2f69ca900d6
child 453984 2f854d716e1de2f7b0a532a015c009daf6c16bd9
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcmanus
bugs1425097
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1425097 - We do not to close h2 connection in case one stream gets 425. r=mcmanus
netwerk/protocol/http/nsHttpTransaction.cpp
--- a/netwerk/protocol/http/nsHttpTransaction.cpp
+++ b/netwerk/protocol/http/nsHttpTransaction.cpp
@@ -1660,16 +1660,19 @@ nsHttpTransaction::HandleContentStart()
                 return NS_ERROR_NET_RESET;
             }
             break;
         case 425:
             LOG(("Too Early."));
             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;
         }
 
         if (mResponseHead->Status() == 200 &&
             mConnection->IsProxyConnectInProgress()) {
             // successful CONNECTs do not have response bodies