Skip to content

Commit

Permalink
Fix condition where full HELLOs might not be sent when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-henry authored and someara committed Mar 2, 2023
1 parent c6adfd9 commit f876ea8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node/Peer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,9 @@ unsigned int Peer::doPingAndKeepalive(void *tPtr,int64_t now)
performMultipathStateCheck(tPtr, now);

const bool sendFullHello = ((now - _lastSentFullHello) >= ZT_PEER_PING_PERIOD);
_lastSentFullHello = now;
if (sendFullHello) {
_lastSentFullHello = now;
}

// Right now we only keep pinging links that have the maximum priority. The
// priority is used to track cluster redirections, meaning that when a cluster
Expand Down

0 comments on commit f876ea8

Please sign in to comment.