diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-11-09 11:08:52 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-11-09 11:08:52 -0800 |
| commit | 4ad2ff2f71f7c7c73872219845f30c204f752078 (patch) | |
| tree | b4e2d72e43ddc6dc9c02afc9c833f6bea2cc50fd /node/Cluster.hpp | |
| parent | b57c855a8c4a1c2a2278bf8e25ba6b82697387cd (diff) | |
| download | infinitytier-4ad2ff2f71f7c7c73872219845f30c204f752078.tar.gz infinitytier-4ad2ff2f71f7c7c73872219845f30c204f752078.zip | |
.
Diffstat (limited to 'node/Cluster.hpp')
| -rw-r--r-- | node/Cluster.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/node/Cluster.hpp b/node/Cluster.hpp index beb5ecdc..63196928 100644 --- a/node/Cluster.hpp +++ b/node/Cluster.hpp @@ -34,6 +34,7 @@ #include <algorithm> #include <map> #include <utility> +#include <list> #include "Constants.hpp" #include "../include/ZeroTierOne.h" @@ -63,7 +64,7 @@ /** * How often to flush outgoing message queues (maximum interval) */ -#define ZT_CLUSTER_FLUSH_PERIOD 300 +#define ZT_CLUSTER_FLUSH_PERIOD 250 /** * Maximum number of queued outgoing packets per sender address @@ -73,7 +74,7 @@ /** * Expiration time for send queue entries */ -#define ZT_CLUSTER_QUEUE_EXPIRATION 2500 +#define ZT_CLUSTER_QUEUE_EXPIRATION 1500 namespace ZeroTier { @@ -382,7 +383,7 @@ private: bool unite; unsigned char data[ZT_PROTO_MAX_PACKET_LENGTH]; }; - std::multimap<Address,_SQE *> _sendViaClusterQueue; // queue by from peer address + std::map< Address,std::list<_SQE> > _sendViaClusterQueue; Mutex _sendViaClusterQueue_m; uint64_t _lastFlushed; |
