Procházet zdrojové kódy

Tweak some size limits.

Adam Ierymenko před 10 roky
rodič
revize
cfe166ef35
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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 {