From e6b23059aca4947c8c4638c5d5e0abdba3b2b7b7 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 26 Mar 2014 16:44:58 -0700 Subject: Change the way TCP failover is invoked. --- node/Path.hpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'node/Path.hpp') diff --git a/node/Path.hpp b/node/Path.hpp index 960b08b3..09ed1f9e 100644 --- a/node/Path.hpp +++ b/node/Path.hpp @@ -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 */ -- cgit v1.2.3