Bug 507370 - ssltunnel may hang with 100% CPU load, breaking the tests execution, r=ted.mielczarek, a=beltzner

This commit is contained in:
Honza Bambas 2009-08-06 16:29:26 +02:00
parent 7eba41474e
commit 9e312a2957

View File

@ -479,8 +479,12 @@ void HandleConnection(void* data)
if (bytesWrite < 0)
{
if (PR_GetError() != PR_WOULD_BLOCK_ERROR)
if (PR_GetError() != PR_WOULD_BLOCK_ERROR) {
client_error = true;
// We got a fatal error while writting the buffer. Clear it to break
// the main loop, we will never more be able to send it.
buffers[s2].bufferhead = buffers[s2].buffertail = buffers[s2].buffer;
}
}
else
{