mirror of
https://github.com/wownero/wownero.git
synced 2026-12-03 06:24:11 +01: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.
This commit is contained in:
@@ -269,6 +269,8 @@ public:
|
|||||||
}
|
}
|
||||||
virtual bool reset_timer(bool first) override final
|
virtual bool reset_timer(bool first) override final
|
||||||
{
|
{
|
||||||
|
if (m_command == connection_context::handshake_command() && !first)
|
||||||
|
return true;
|
||||||
std::shared_ptr<anvoke_handler> self;
|
std::shared_ptr<anvoke_handler> self;
|
||||||
if (!m_cancel_timer_called && (self = this->weak_from_this().lock()) && (first || m_timer.cancel() > 0))
|
if (!m_cancel_timer_called && (self = this->weak_from_this().lock()) && (first || m_timer.cancel() > 0))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user