Bug 1548822, r=kershaw,valentin
authorHonza Bambas <honzab.moz@firemni.cz>
Thu, 09 May 2019 16:39:59 +0000
changeset 473772 28716788b1f142d48886472be02790659f559d2e
parent 473771 78915e9ee8f8fea4a779a171014ec35eb8d36186
child 473773 7bfe542574a942df1aaca059b8cc7d4da0cfa158
push id36013
push usercsabou@mozilla.com
push dateTue, 14 May 2019 16:01:08 +0000
treeherdermozilla-central@230016dbba05 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskershaw, valentin
bugs1548822
milestone68.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 1548822, r=kershaw,valentin Differential Revision: https://phabricator.services.mozilla.com/D30364
netwerk/protocol/http/nsHttpConnectionMgr.cpp
--- a/netwerk/protocol/http/nsHttpConnectionMgr.cpp
+++ b/netwerk/protocol/http/nsHttpConnectionMgr.cpp
@@ -443,18 +443,22 @@ nsresult nsHttpConnectionMgr::PruneNoTra
 
 nsresult nsHttpConnectionMgr::VerifyTraffic() {
   LOG(("nsHttpConnectionMgr::VerifyTraffic\n"));
   return PostEvent(&nsHttpConnectionMgr::OnMsgVerifyTraffic);
 }
 
 nsresult nsHttpConnectionMgr::DoShiftReloadConnectionCleanup(
     nsHttpConnectionInfo* aCI) {
+  RefPtr<nsHttpConnectionInfo> ci;
+  if (aCI) {
+    ci = aCI->Clone();
+  }
   return PostEvent(&nsHttpConnectionMgr::OnMsgDoShiftReloadConnectionCleanup, 0,
-                   aCI);
+                   ci);
 }
 
 class SpeculativeConnectArgs : public ARefBase {
  public:
   SpeculativeConnectArgs()
       : mParallelSpeculativeConnectLimit(0),
         mIgnoreIdle(false),
         mIsFromPredictor(false),