浏览代码

Tweak some size limits.

Adam Ierymenko 9 年之前
父节点
当前提交
cfe166ef35
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      include/ZeroTierOne.h
  2. 1 1
      node/Cluster.hpp

+ 1 - 1
include/ZeroTierOne.h

@@ -141,7 +141,7 @@ extern "C" {
 /**
  * Maximum allowed cluster message length in bytes
  */
-#define ZT_CLUSTER_MAX_MESSAGE_LENGTH (1444 * 6)
+#define ZT_CLUSTER_MAX_MESSAGE_LENGTH (1444 * 4)
 
 /**
  * A null/empty sockaddr (all zero) to signify an unspecified socket address

+ 1 - 1
node/Cluster.hpp

@@ -57,7 +57,7 @@
 /**
  * Desired period between doPeriodicTasks() in milliseconds
  */
-#define ZT_CLUSTER_PERIODIC_TASK_PERIOD 100
+#define ZT_CLUSTER_PERIODIC_TASK_PERIOD 50
 
 namespace ZeroTier {