mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Bug #23351 --> patch from bns_robson@hotmail.com to fix
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:
parent
c3fb41fb30
commit
1613b35d89
@ -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 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user