зеркало из https://github.com/mozilla/pjs.git
Fix for case where we're trying to Write to a blocking stream, and we're out of buffer space. This should block. r=rpotts
This commit is contained in:
Родитель
a37a27d9e9
Коммит
38804a8859
|
@ -621,7 +621,7 @@ nsPipe::nsPipeOutputStream::WriteSegments(nsReadSegmentFun reader,
|
|||
if (NS_FAILED(rv))
|
||||
goto done;
|
||||
if (writeBufLen == 0) {
|
||||
if (*writeCount > 0)
|
||||
if (*writeCount > 0 && !mBlocking)
|
||||
goto done;
|
||||
if (pipe->mObserver/* && *writeCount == 0*/) {
|
||||
mon.Exit(); // XXXbe avoid deadlock better
|
||||
|
|
Загрузка…
Ссылка в новой задаче