From b382a876f21aa41fce101e0ef41bdec8c1232268 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 --- 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 4e7f1422afe..6d94a708341 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.