increase min tunnel build messages interval. don't count if from the same millisecond

This commit is contained in:
orignal committed 2026-02-05 18:40:21 -05:00
1 parent c63f87eb22
commit bb30a42c2d
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -574,7 +574,8 @@ namespace i2p
if (m_NumThrottledTunnelBuildMessages < MAX_NUM_THROTTLED_TUNNEL_BUILD_MESSAGES)
{
// let TBM go through
m_NumThrottledTunnelBuildMessages++;
if (ts > m_LastTunnelBuildMessageTimestamp + 1) // don't count if from the same millisecond
m_NumThrottledTunnelBuildMessages++;
HandleI2NPMessage (msg);
}
else // drop TBM