From 3831348301edd678caf7850eb166d1d89a8bdc0a Mon Sep 17 00:00:00 2001 From: zzz <zzz@i2pmail.org> Date: Fri, 27 Jan 2023 11:15:07 -0500 Subject: [PATCH] Tunnels: Reduce grace period from 120 to 90 sec. --- router/java/src/net/i2p/router/tunnel/TunnelDispatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/java/src/net/i2p/router/tunnel/TunnelDispatcher.java b/router/java/src/net/i2p/router/tunnel/TunnelDispatcher.java index ce287f2d65..e04816b922 100644 --- a/router/java/src/net/i2p/router/tunnel/TunnelDispatcher.java +++ b/router/java/src/net/i2p/router/tunnel/TunnelDispatcher.java @@ -949,7 +949,7 @@ public class TunnelDispatcher implements Service { long now = getContext().clock().now() + LEAVE_BATCH_TIME; // leave all expiring in next 10 sec long nextTime = now + 10*60*1000; while ((cur = _configs.peek()) != null) { - long exp = cur.getExpiration() + (2 * Router.CLOCK_FUDGE_FACTOR) + LEAVE_BATCH_TIME; + long exp = cur.getExpiration() + (3 * Router.CLOCK_FUDGE_FACTOR / 2) + LEAVE_BATCH_TIME; if (exp < now) { _configs.poll(); if (_log.shouldLog(Log.INFO)) -- GitLab