Bug 1079484 - Page stalls proxying over https part 1. r=hurley
authorPatrick McManus <mcmanus@ducksong.com>
Tue, 07 Oct 2014 16:35:05 -0400
changeset 209537 c39759a6771e50912d89837adf6837152db0dced
parent 209536 0daef5a46f407bcca697a2a8b8800fcde36934e7
child 209538 ccde95bd3c7e76a10ce5f192bbead2646463a847
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewershurley
bugs1079484
milestone35.0a1
Bug 1079484 - Page stalls proxying over https part 1. r=hurley
netwerk/protocol/http/TunnelUtils.cpp
--- a/netwerk/protocol/http/TunnelUtils.cpp
+++ b/netwerk/protocol/http/TunnelUtils.cpp
@@ -348,16 +348,19 @@ TLSFilterTransaction::WriteSegments(nsAH
     return NS_ERROR_UNEXPECTED;
   }
 
   mSegmentWriter = aWriter;
   nsresult rv = mTransaction->WriteSegments(this, aCount, outCountWritten);
   if (NS_SUCCEEDED(rv) && NS_FAILED(mFilterReadCode) && !(*outCountWritten)) {
     // nsPipe turns failures into silent OK.. undo that!
     rv = mFilterReadCode;
+    if (mFilterReadCode == NS_BASE_STREAM_WOULD_BLOCK) {
+      Connection()->ResumeRecv();
+    }
   }
   LOG(("TLSFilterTransaction %p called trans->WriteSegments rv=%x %d\n",
        this, rv, *outCountWritten));
   return rv;
 }
 
 nsresult
 TLSFilterTransaction::GetTransactionSecurityInfo(nsISupports **outSecInfo)