summaryrefslogtreecommitdiff
path: root/node/Peer.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-05-14 13:54:27 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-05-14 13:54:27 -0700
commitcacdb445c786f97d5d9af200b17665bb171a42d9 (patch)
tree745f212588b6e8e65fb0edb708e801a96cf1d074 /node/Peer.cpp
parent4743ad0b16a72c00039de1aed98499fe0adf633f (diff)
downloadinfinitytier-cacdb445c786f97d5d9af200b17665bb171a42d9.tar.gz
infinitytier-cacdb445c786f97d5d9af200b17665bb171a42d9.zip
Bump protocol version to 10
Diffstat (limited to 'node/Peer.cpp')
-rw-r--r--node/Peer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp
index b0c7db77..95a26003 100644
--- a/node/Peer.cpp
+++ b/node/Peer.cpp
@@ -650,10 +650,11 @@ void Peer::introduce(void *const tPtr,const int64_t now,const SharedPtr<Peer> &o
}
}
-inline void Peer::processBackgroundPeerTasks(int64_t now)
+inline void Peer::processBackgroundPeerTasks(const int64_t now)
{
// Determine current multipath compatibility with other peer
if ((now - _lastMultipathCompatibilityCheck) >= ZT_PATH_QUALITY_COMPUTE_INTERVAL) {
+ //
// Cache number of available paths so that we can short-circuit multipath logic elsewhere
//
// We also take notice of duplicate paths (same IP only) because we may have
@@ -663,6 +664,7 @@ inline void Peer::processBackgroundPeerTasks(int64_t now)
//
// This is done to support the behavior of auto multipath enable/disable
// without user intervention.
+ //
int currAlivePathCount = 0;
int duplicatePathsFound = 0;
for (unsigned int i=0;i<ZT_MAX_PEER_NETWORK_PATHS;++i) {