1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-13 19:37:51 +00:00

handle async_receive_from errors

This commit is contained in:
orignal 2016-11-30 14:51:26 -05:00
parent 81978b214c
commit 1d8807a6ba

12
SSU.cpp
View File

@ -207,8 +207,12 @@ namespace transport
}
else
{
LogPrint (eLogError, "SSU: receive error: ", ecode.message ());
delete packet;
if (ecode != boost::asio::error::operation_aborted)
{
LogPrint (eLogError, "SSU: receive error: ", ecode.message ());
Receive ();
}
}
}
@ -234,8 +238,12 @@ namespace transport
}
else
{
LogPrint (eLogError, "SSU: v6 receive error: ", ecode.message ());
delete packet;
if (ecode != boost::asio::error::operation_aborted)
{
LogPrint (eLogError, "SSU: v6 receive error: ", ecode.message ());
ReceiveV6 ();
}
}
}