Bug 1130803 - Use non-blocking input for Fetch synthetization pipe, r=bkelly,ehsan

This commit is contained in:
Honza Bambas 2015-03-03 10:16:00 +01:00
parent 50bbcfe822
commit b382a876f2

View File

@ -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.