зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1130803 - Use non-blocking input for Fetch synthetization pipe, r=bkelly,ehsan
--HG-- extra : rebase_source : 9e668e214efe646548c290b4348985caf35a0883
This commit is contained in:
Родитель
c67f00f900
Коммит
b013cc108a
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче