1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-31 17:24:16 +00:00

Merge remote-tracking branch 'purple/openssl' into websocks

This commit is contained in:
Jeff Becker 2016-12-17 15:16:50 -05:00
commit 1e2fd57c4c

View File

@ -177,11 +177,13 @@ 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 else if (ecode == boost::asio::error::timed_out && m_Stream->IsOpen ())
StreamReceive ();
else
Terminate (); Terminate ();
} }
else else
Terminate (); Terminate ();
} }
else else
Write (m_StreamBuffer, bytes_transferred); Write (m_StreamBuffer, bytes_transferred);