diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-09 16:54:47 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-09 16:54:47 -0800 |
commit | 4769dacf6102342ddd4519cfe8227bf6fc49fbcc (patch) | |
tree | 4ee76a62e5a9abd9db5096c52857e21c3585c874 /node | |
parent | 63ec7e58d413aa4066764a9818c77c016cd9b8ff (diff) | |
download | infinitytier-4769dacf6102342ddd4519cfe8227bf6fc49fbcc.tar.gz infinitytier-4769dacf6102342ddd4519cfe8227bf6fc49fbcc.zip |
Tweak needsOurMembershipCertificate timing to resolve a possible source of occasional dropped packets.
Diffstat (limited to 'node')
-rw-r--r-- | node/Peer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index 17f9b2ef..c3157f03 100644 --- a/node/Peer.cpp +++ b/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) |