瀏覽代碼

Change ECHO rate-limit divsor from 16 to 20

Joseph Henry 3 年之前
父節點
當前提交
d1335dca11
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      node/Path.hpp

+ 1 - 1
node/Path.hpp

@@ -273,7 +273,7 @@ public:
 	 */
 	inline bool rateGateEchoRequest(const int64_t now)
 	{
-		if ((now - _lastEchoRequestReceived) >= (ZT_PEER_GENERAL_RATE_LIMIT / 16)) {
+		if ((now - _lastEchoRequestReceived) >= (ZT_PEER_GENERAL_RATE_LIMIT / 20)) {
 			_lastEchoRequestReceived = now;
 			return true;
 		}