mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-13 04:38:28 +00:00
Change the way TCP failover is invoked.
This commit is contained in:
@ -87,19 +87,6 @@ public:
|
||||
return ((_addr)&&((_fixed)||((now - _lastReceived) < ZT_PEER_PATH_ACTIVITY_TIMEOUT)));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return True if it appears that a ping has gone unanswered
|
||||
*/
|
||||
inline bool pingUnanswered(uint64_t now) const
|
||||
throw()
|
||||
{
|
||||
uint64_t lp = _lastPing;
|
||||
uint64_t lr = _lastReceived;
|
||||
if (lp)
|
||||
return ((lr < lp)&&((lp - lr) > ZT_PING_UNANSWERED_AFTER));
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Human-readable address and other information about this path, some computed as of current time
|
||||
*/
|
||||
|
Reference in New Issue
Block a user