mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1130803 - Use non-blocking input for Fetch synthetization pipe, r=bkelly,ehsan
This commit is contained in:
parent
50bbcfe822
commit
b382a876f2
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user