I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit 38313483 authored by zzz's avatar zzz
Browse files

Tunnels: Reduce grace period from 120 to 90 sec.

parent 9cbd7643
No related branches found
No related tags found
No related merge requests found
...@@ -949,7 +949,7 @@ public class TunnelDispatcher implements Service { ...@@ -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 now = getContext().clock().now() + LEAVE_BATCH_TIME; // leave all expiring in next 10 sec
long nextTime = now + 10*60*1000; long nextTime = now + 10*60*1000;
while ((cur = _configs.peek()) != null) { 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) { if (exp < now) {
_configs.poll(); _configs.poll();
if (_log.shouldLog(Log.INFO)) if (_log.shouldLog(Log.INFO))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment