Add a simple but very nice mechanism for avoiding potentially dead supernodes.

This commit is contained in:
Adam Ierymenko
2014-02-03 11:09:09 -08:00
parent bf5f09a0c7
commit d04e5a1fe0
2 changed files with 24 additions and 8 deletions

View File

@ -304,6 +304,11 @@ error_no_byte_order_defined;
*/
#define ZT_PEER_LINK_ACTIVITY_TIMEOUT ((ZT_PEER_DIRECT_PING_DELAY * 2) + 1000)
/**
* Stop relaying via peers that have not responded to direct sends in this long
*/
#define ZT_PEER_RELAY_CONVERSATION_LATENCY_THRESHOLD 10000
/**
* Number of outgoing verb/packetId pairs to keep for sends expecting responses
*/