1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

don't close streams after 1 hour

This commit is contained in:
R4SAS 2016-12-17 22:49:51 +03:00
parent ae442ee015
commit 8b8007695c

View File

@ -177,11 +177,13 @@ namespace client
{
if (bytes_transferred > 0)
Write (m_StreamBuffer, bytes_transferred); // postpone termination
else
else if (ecode == boost::asio::error::timed_out && m_Stream->IsOpen ())
StreamReceive ();
else
Terminate ();
}
else
Terminate ();
Terminate ();
}
else
Write (m_StreamBuffer, bytes_transferred);