mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-16 10:03:14 -07:00
Add a simple but very nice mechanism for avoiding potentially dead supernodes.
This commit is contained in:
parent
bf5f09a0c7
commit
d04e5a1fe0
2 changed files with 24 additions and 8 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue