Reset timeout before reading response.
This commit is contained in:
parent
abe3eef889
commit
7ab15b35cf
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user