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
git-svn-id: svn://10.0.0.236/trunk@53413 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c4a2b4eb53
commit
50fd544966
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user