From d1101441b3d43ee69c1b661cc5f777a09fd10fca Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 2 Sep 2016 11:54:59 -0700 Subject: [PATCH] Tweak some timings. --- node/Constants.hpp | 6 +++--- node/Peer.cpp | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/node/Constants.hpp b/node/Constants.hpp index 6d6f44e00..b783e2c2d 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -244,17 +244,17 @@ * This is also how often pings will be retried to upstream peers (relays, roots) * 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 */ -#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 */ -#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 diff --git a/node/Peer.cpp b/node/Peer.cpp index 251c5a5f4..9b5d84fc6 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -27,8 +27,6 @@ #include "Cluster.hpp" #include "Packet.hpp" -#define ZT_PEER_PATH_SORT_INTERVAL 5000 - namespace ZeroTier { // Used to send varying values for NAT keepalive