mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 07:31:35 +02:00
p2p: don't reset timeout timer for handshakes
The handshake timeout should just be an absolute timeout, we don't care about partial messages received during the handshake. (cherry picked from commit c7c43686878166cd0b93bed0cc712c8dd9845c89)
This commit is contained in:
@@ -263,6 +263,8 @@ public:
|
||||
}
|
||||
virtual void reset_timer()
|
||||
{
|
||||
if (m_command == connection_context::handshake_command())
|
||||
return;
|
||||
boost::system::error_code ignored_ec;
|
||||
if (!m_cancel_timer_called && m_timer.cancel(ignored_ec) > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user