From 451b8aa7b293be0bdd62a0cc1c292bfe5b3de751 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 10 Nov 2015 17:37:38 -0800 Subject: Query both root and network controller for multicast last resort GATHER. --- node/Cluster.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'node/Cluster.cpp') diff --git a/node/Cluster.cpp b/node/Cluster.cpp index 0a7de93d..af9ab854 100644 --- a/node/Cluster.cpp +++ b/node/Cluster.cpp @@ -55,33 +55,6 @@ #include "Node.hpp" #include "Array.hpp" -/** - * Chunk size for allocating queue entries - * - * Queue entries are allocated in chunks of this many and are added to a pool. - * ZT_CLUSTER_MAX_QUEUE_GLOBAL must be evenly divisible by this. - */ -#define ZT_CLUSTER_QUEUE_CHUNK_SIZE 32 - -/** - * Maximum number of chunks to ever allocate - * - * This is a global sanity limit to prevent resource exhaustion attacks. It - * works out to about 600mb of RAM. You'll never see this on a normal edge - * node. We're unlikely to see this on a root server unless someone is DOSing - * us. In that case cluster relaying will be affected but other functions - * should continue to operate normally. - */ -#define ZT_CLUSTER_MAX_QUEUE_CHUNKS 8194 - -/** - * Max data per queue entry - * - * If we ever support larger transport MTUs this must be increased. The plus - * 16 is just a small margin and has no special meaning. - */ -#define ZT_CLUSTER_SEND_QUEUE_DATA_MAX (ZT_UDP_DEFAULT_PAYLOAD_MTU + 16) - namespace ZeroTier { static inline double _dist3d(int x1,int y1,int z1,int x2,int y2,int z2) -- cgit v1.2.3