problem where we weren't pausing for more data if the server hadn't sent
the response back.
r=mscott
This commit is contained in:
mscott%netscape.com 2000-01-11 21:06:36 +00:00
parent c3fb41fb30
commit 1613b35d89

View File

@ -477,6 +477,12 @@ PRInt32 nsSmtpProtocol::SmtpResponse(nsIInputStream * inputStream, PRUint32 leng
m_nextState = m_nextStateAfterResponse;
ClearFlag(SMTP_PAUSE_FOR_READ); /* don't pause */
}
else
{
inputStream->Available(&length); // refresh the length as it has changed...
if (!length)
SetFlag(SMTP_PAUSE_FOR_READ);
}
return(0); /* everything ok */
}