summaryrefslogtreecommitdiff
path: root/node/Constants.hpp
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2018-06-12 15:24:12 -0700
committerJoseph Henry <josephjah@gmail.com>2018-06-12 15:24:12 -0700
commit6fddf31db31a6f3d0f9c6dd7e611543f56d6fc2f (patch)
tree27dd7e038955914999ee92d3f05e3774219a7848 /node/Constants.hpp
parent7c53adbcfea23c573547abbbd92eb336abcdbe2f (diff)
downloadinfinitytier-6fddf31db31a6f3d0f9c6dd7e611543f56d6fc2f.tar.gz
infinitytier-6fddf31db31a6f3d0f9c6dd7e611543f56d6fc2f.zip
Improved rate limit logic for QoS/ACK packets. Also reduced how often processBackgroundPathMeasurements() is called
Diffstat (limited to 'node/Constants.hpp')
-rw-r--r--node/Constants.hpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/node/Constants.hpp b/node/Constants.hpp
index d86775c5..d4f6faaf 100644
--- a/node/Constants.hpp
+++ b/node/Constants.hpp
@@ -289,7 +289,7 @@
* CUTOFF_LIMIT times per CUTOFF_TIME milliseconds per peer to prevent
* this from being useful for DOS amplification attacks.
*/
-#define ZT_PATH_QOS_ACK_CUTOFF_LIMIT 16
+#define ZT_PATH_QOS_ACK_CUTOFF_LIMIT 128
/**
* Path choice history window size. This is used to keep track of which paths were
@@ -373,11 +373,6 @@
#define ZT_PATH_MAX_OUTSTANDING_QOS_RECORDS 128
/**
- * How often we check the age of QoS records
- */
-#define ZT_PATH_QOS_RECORD_PURGE_INTERVAL 1000
-
-/**
* Timeout for QoS records
*/
#define ZT_PATH_QOS_TIMEOUT ZT_PATH_QOS_INTERVAL * 2