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.
This commit is contained in:
j-berman
2026-08-10 20:06:54 -07:00
parent 13b63d281c
commit 7e0c68b422
@@ -269,6 +269,8 @@ public:
}
virtual bool reset_timer(bool first) override final
{
if (m_command == connection_context::handshake_command() && !first)
return true;
std::shared_ptr<anvoke_handler> self;
if (!m_cancel_timer_called && (self = this->weak_from_this().lock()) && (first || m_timer.cancel() > 0))
{