From 7ab15b35cf0033389b0b338176459f474a69bd43 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Fri, 5 May 2006 13:29:37 +0000 Subject: Reset timeout before reading response. --- src/net/smtp/SMTPResponse.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/net/smtp/SMTPResponse.cpp b/src/net/smtp/SMTPResponse.cpp index c1608b23..c39774b1 100644 --- a/src/net/smtp/SMTPResponse.cpp +++ b/src/net/smtp/SMTPResponse.cpp @@ -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 -- cgit