Tweak some timings.

This commit is contained in:
Adam Ierymenko 2016-09-02 11:54:59 -07:00
parent e8f6b4b5d3
commit d1101441b3
2 changed files with 3 additions and 5 deletions

View file

@ -244,17 +244,17 @@
* This is also how often pings will be retried to upstream peers (relays, roots) * This is also how often pings will be retried to upstream peers (relays, roots)
* constantly until something is heard. * constantly until something is heard.
*/ */
#define ZT_PING_CHECK_INVERVAL 8000 #define ZT_PING_CHECK_INVERVAL 9000
/** /**
* How frequently to send heartbeats over in-use paths * How frequently to send heartbeats over in-use paths
*/ */
#define ZT_PATH_HEARTBEAT_PERIOD 18000 #define ZT_PATH_HEARTBEAT_PERIOD 15000
/** /**
* Paths are considered inactive if they have not received traffic in this long * Paths are considered inactive if they have not received traffic in this long
*/ */
#define ZT_PATH_ALIVE_TIMEOUT ((ZT_PATH_HEARTBEAT_PERIOD * 2) + 2000) #define ZT_PATH_ALIVE_TIMEOUT 35000
/** /**
* Delay between full-fledge pings of directly connected peers * Delay between full-fledge pings of directly connected peers

View file

@ -27,8 +27,6 @@
#include "Cluster.hpp" #include "Cluster.hpp"
#include "Packet.hpp" #include "Packet.hpp"
#define ZT_PEER_PATH_SORT_INTERVAL 5000
namespace ZeroTier { namespace ZeroTier {
// Used to send varying values for NAT keepalive // Used to send varying values for NAT keepalive