From b013cc108afa4c49840fa87fd40e9595a9234410 Mon Sep 17 00:00:00 2001 From: Honza Bambas Date: Tue, 3 Mar 2015 10:16:00 +0100 Subject: [PATCH] Bug 1130803 - Use non-blocking input for Fetch synthetization pipe, r=bkelly,ehsan --HG-- extra : rebase_source : 9e668e214efe646548c290b4348985caf35a0883 --- dom/fetch/FetchDriver.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom/fetch/FetchDriver.cpp b/dom/fetch/FetchDriver.cpp index 4e7f1422afe1..6d94a708341a 100644 --- a/dom/fetch/FetchDriver.cpp +++ b/dom/fetch/FetchDriver.cpp @@ -655,7 +655,9 @@ FetchDriver::OnStartRequest(nsIRequest* aRequest, rv = NS_NewPipe(getter_AddRefs(pipeInputStream), getter_AddRefs(mPipeOutputStream), 0, /* default segment size */ - UINT32_MAX /* infinite pipe */); + UINT32_MAX /* infinite pipe */, + true /* non-blocking input, otherwise you deadlock */, + false /* blocking output, since the pipe is 'in'finite */ ); if (NS_WARN_IF(NS_FAILED(rv))) { FailWithNetworkError(); // Cancel request.