Completely factor out "desperation" from the core. I thought of a significantly simpler way to move all of this logic entirely into the containing service, liberating the core from any concern over the nature of its pipe to the outside world.

This commit is contained in:
Adam Ierymenko 2015-05-21 15:58:26 -07:00
parent 123ff28863
commit d9006712f6
12 changed files with 91 additions and 165 deletions

View file

@ -269,11 +269,6 @@
*/
#define ZT_NETWORK_AUTOCONF_DELAY 60000
/**
* Increment core desperation after this multiple of ping checks without responses from upstream peers
*/
#define ZT_CORE_DESPERATION_INCREMENT 2
/**
* Timeout for overall peer activity (measured from last receive)
*/