Bug 1425097 - We do not to close h2 connection in case one stream gets 425. r=mcmanus
☠☠ backed out by 5a7a7bc878bc ☠ ☠
authorDragana Damjanovic dd.mozilla@gmail.com
Mon, 15 Jan 2018 08:20:00 -0800
changeset 399449 070b636b242bd5ef46bbce31119743f672ebb0df
parent 399448 2ab411552083446b4eabf10c2839f952baa95e88
child 399450 aa97f8900daef878107eb17f1afd802a88605544
push id98958
push usermozilla@noorenberghe.ca
push dateTue, 16 Jan 2018 17:39:02 +0000
treeherdermozilla-inbound@070b636b242b [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