diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-01-06 11:38:11 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-01-06 11:38:11 -0800 |
| commit | ff9317365a1d9498076b0971f0209fc2aec5c142 (patch) | |
| tree | 108e2022662732946807a55fa61c4896780e590a /node/Constants.hpp | |
| parent | b8059d5c879ef02865198634679a7c04fda44949 (diff) | |
| parent | 0a3ef38cade03c9b6a4f94611bd3df620ce1f4e6 (diff) | |
| download | infinitytier-ff9317365a1d9498076b0971f0209fc2aec5c142.tar.gz infinitytier-ff9317365a1d9498076b0971f0209fc2aec5c142.zip | |
Merge branch 'dev' into edge
Diffstat (limited to 'node/Constants.hpp')
| -rw-r--r-- | node/Constants.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/node/Constants.hpp b/node/Constants.hpp index 7368a634..a2ba1c1a 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -264,7 +264,7 @@ /** * Delay between ordinary case pings of direct links */ -#define ZT_PEER_DIRECT_PING_DELAY 60000 +#define ZT_PEER_DIRECT_PING_DELAY 90000 /** * Timeout for overall peer activity (measured from last receive) @@ -272,6 +272,16 @@ #define ZT_PEER_ACTIVITY_TIMEOUT ((ZT_PEER_DIRECT_PING_DELAY * 4) + ZT_PING_CHECK_INVERVAL) /** + * No answer timeout to trigger dead path detection + */ +#define ZT_PEER_DEAD_PATH_DETECTION_NO_ANSWER_TIMEOUT 2500 + +/** + * Probation threshold after which a path becomes dead + */ +#define ZT_PEER_DEAD_PATH_DETECTION_MAX_PROBATION 3 + +/** * Delay between requests for updated network autoconf information */ #define ZT_NETWORK_AUTOCONF_DELAY 60000 |
