Some cleanup, and use getPeerNoCache() exclusively in Cluster.

This commit is contained in:
Adam Ierymenko 2015-10-27 17:36:47 -07:00
parent 4221552c0b
commit 51fcc75354
3 changed files with 40 additions and 13 deletions

View file

@ -47,7 +47,7 @@
/**
* Timeout for cluster members being considered "alive"
*/
#define ZT_CLUSTER_TIMEOUT 10000
#define ZT_CLUSTER_TIMEOUT 20000
/**
* How often should we announce that we have a peer?
@ -349,6 +349,7 @@ private:
};
Hashtable< Address,_PA > _peerAffinities;
Mutex _peerAffinities_m;
uint64_t _lastCleanedPeerAffinities;
};
} // namespace ZeroTier