mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-28 01:44:14 +00:00
handle async_receive_from errors
This commit is contained in:
parent
81978b214c
commit
1d8807a6ba
12
SSU.cpp
12
SSU.cpp
@ -207,8 +207,12 @@ namespace transport
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LogPrint (eLogError, "SSU: receive error: ", ecode.message ());
|
|
||||||
delete packet;
|
delete packet;
|
||||||
|
if (ecode != boost::asio::error::operation_aborted)
|
||||||
|
{
|
||||||
|
LogPrint (eLogError, "SSU: receive error: ", ecode.message ());
|
||||||
|
Receive ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -234,8 +238,12 @@ namespace transport
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LogPrint (eLogError, "SSU: v6 receive error: ", ecode.message ());
|
|
||||||
delete packet;
|
delete packet;
|
||||||
|
if (ecode != boost::asio::error::operation_aborted)
|
||||||
|
{
|
||||||
|
LogPrint (eLogError, "SSU: v6 receive error: ", ecode.message ());
|
||||||
|
ReceiveV6 ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user