From 819b35c76078f55ac67b32b06bca18e8d820c48f Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Mon, 16 Mar 2015 15:20:03 +0000 Subject: [PATCH] Router: Increase exploratory tunnel quantity if floodfill --- router/java/src/net/i2p/router/tunnel/pool/TunnelPool.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/router/java/src/net/i2p/router/tunnel/pool/TunnelPool.java b/router/java/src/net/i2p/router/tunnel/pool/TunnelPool.java index cc42da3ab6..258e01046f 100644 --- a/router/java/src/net/i2p/router/tunnel/pool/TunnelPool.java +++ b/router/java/src/net/i2p/router/tunnel/pool/TunnelPool.java @@ -324,10 +324,16 @@ public class TunnelPool { * length settings. Although I guess inbound and outbound exploratory * could be different too, and inbound is harder... * + * As of 0.9.19, add more if exploratory and floodfill, as floodfills + * generate a lot of exploratory traffic. + * TODO high-bandwidth non-floodfills do also... + * * @since 0.8.11 */ private int getAdjustedTotalQuantity() { int rv = _settings.getTotalQuantity(); + if (_settings.isExploratory() && _context.netDb().floodfillEnabled()) + rv += 3; if (_settings.isExploratory() && rv > 1) { RateStat e = _context.statManager().getRate("tunnel.buildExploratoryExpire"); RateStat r = _context.statManager().getRate("tunnel.buildExploratoryReject"); -- GitLab