Tighten up dead path detection. Should now auto-detect dead paths in less than 10 seconds at a very small cost in ECHO requests (or HELLOs for older peers). GitHib issue #272

This commit is contained in:
Adam Ierymenko 2016-01-06 10:00:03 -08:00
parent 4d94ae77b4
commit 05b2c0743f
3 changed files with 65 additions and 11 deletions

View file

@ -274,7 +274,7 @@
/**
* No answer timeout to trigger dead path detection
*/
#define ZT_PEER_DEAD_PATH_DETECTION_NO_ANSWER_TIMEOUT 3000
#define ZT_PEER_DEAD_PATH_DETECTION_NO_ANSWER_TIMEOUT 2500
/**
* Probation threshold after which a path becomes dead