mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-14 07:11:02 +00:00
pass boost::asio::error::eof if stream get closed
This commit is contained in:
+3
-1
@@ -422,7 +422,9 @@ namespace stream
|
||||
else if (ecode == boost::asio::error::operation_aborted)
|
||||
{
|
||||
// timeout not expired
|
||||
if (m_Status == eStreamStatusReset)
|
||||
if (m_Status == eStreamStatusClosed)
|
||||
handler (boost::asio::error::make_error_code (boost::asio::error::eof), 0);
|
||||
else if (m_Status == eStreamStatusReset)
|
||||
handler (boost::asio::error::make_error_code (boost::asio::error::connection_reset), 0);
|
||||
else
|
||||
handler (boost::asio::error::make_error_code (boost::asio::error::operation_aborted), 0);
|
||||
|
||||
Reference in New Issue
Block a user