Browse Source

logging for handshake timeout

cl-refactor
subtly 10 years ago
parent
commit
14568fc839
  1. 3
      libp2p/RLPxHandshake.cpp

3
libp2p/RLPxHandshake.cpp

@ -264,6 +264,9 @@ void RLPXHandshake::transition(boost::system::error_code _ech)
m_idleTimer.async_wait([this, self](boost::system::error_code const& _ec) m_idleTimer.async_wait([this, self](boost::system::error_code const& _ec)
{ {
if (!_ec) if (!_ec)
{
clog(NetWarn) << "Disconnecting " << m_socket->remoteEndpoint() << " (Handshake Timeout)";
cancel(); cancel();
}
}); });
} }

Loading…
Cancel
Save