Explorar o código

Tweak needsOurMembershipCertificate timing to resolve a possible source of occasional dropped packets.

Adam Ierymenko %!s(int64=9) %!d(string=hai) anos
pai
achega
4769dacf61
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      node/Peer.cpp

+ 1 - 1
node/Peer.cpp

@@ -419,7 +419,7 @@ bool Peer::needsOurNetworkMembershipCertificate(uint64_t nwid,uint64_t now,bool
 	const uint64_t tmp = lastPushed;
 	if (updateLastPushedTime)
 		lastPushed = now;
-	return ((now - tmp) >= (ZT_NETWORK_AUTOCONF_DELAY / 2));
+	return ((now - tmp) >= (ZT_NETWORK_AUTOCONF_DELAY / 3));
 }
 
 void Peer::clean(uint64_t now)