mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
don't close streams after 1 hour
This commit is contained in:
parent
ae442ee015
commit
8b8007695c
1 changed files with 4 additions and 2 deletions
|
@ -177,6 +177,8 @@ namespace client
|
||||||
{
|
{
|
||||||
if (bytes_transferred > 0)
|
if (bytes_transferred > 0)
|
||||||
Write (m_StreamBuffer, bytes_transferred); // postpone termination
|
Write (m_StreamBuffer, bytes_transferred); // postpone termination
|
||||||
|
else if (ecode == boost::asio::error::timed_out && m_Stream->IsOpen ())
|
||||||
|
StreamReceive ();
|
||||||
else
|
else
|
||||||
Terminate ();
|
Terminate ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue