mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-17 21:26:04 +00:00
check accepted socket for error
This commit is contained in:
parent
6beb527058
commit
8e75d8c39a
@ -792,8 +792,15 @@ namespace transport
|
|||||||
{
|
{
|
||||||
if (!error)
|
if (!error)
|
||||||
{
|
{
|
||||||
LogPrint (eLogInfo, "Connected from ", conn->GetSocket ().remote_endpoint());
|
boost::system::error_code ec;
|
||||||
conn->ServerLogin ();
|
auto ep = conn->GetSocket ().remote_endpoint(ec);
|
||||||
|
if (!ec)
|
||||||
|
{
|
||||||
|
LogPrint (eLogInfo, "Connected from ", ep);
|
||||||
|
conn->ServerLogin ();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
LogPrint (eLogError, "Connected from error ", ec.message ());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -809,8 +816,15 @@ namespace transport
|
|||||||
{
|
{
|
||||||
if (!error)
|
if (!error)
|
||||||
{
|
{
|
||||||
LogPrint (eLogInfo, "Connected from ", conn->GetSocket ().remote_endpoint());
|
boost::system::error_code ec;
|
||||||
conn->ServerLogin ();
|
auto ep = conn->GetSocket ().remote_endpoint(ec);
|
||||||
|
if (!ec)
|
||||||
|
{
|
||||||
|
LogPrint (eLogInfo, "Connected from ", ep);
|
||||||
|
conn->ServerLogin ();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
LogPrint (eLogError, "Connected from error ", ec.message ());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error != boost::asio::error::operation_aborted)
|
if (error != boost::asio::error::operation_aborted)
|
||||||
|
Loading…
Reference in New Issue
Block a user