Reset timeout before reading response.

This commit is contained in:
Vincent Richard 2006-05-05 13:29:37 +00:00
parent abe3eef889
commit 7ab15b35cf
2 changed files with 6 additions and 0 deletions

View File

@ -108,6 +108,9 @@ const string SMTPResponse::readResponseLine()
{
string currentBuffer = m_responseBuffer;
if (m_timeoutHandler)
m_timeoutHandler->resetTimeOut();
while (true)
{
// Get a line from the response buffer

View File

@ -5075,6 +5075,9 @@ public:
ref <timeoutHandler> toh = m_timeoutHandler.acquire();
ref <socket> sok = m_socket.acquire();
if (toh)
toh->resetTimeOut();
while (receiveBuffer.empty())
{
// Check whether the time-out delay is elapsed