From 7d35a4e1b9ef85d88640e3b8d1336740b206ef71 Mon Sep 17 00:00:00 2001 From: zzz Date: Sun, 21 Feb 2016 22:17:38 +0000 Subject: [PATCH] Transports: Increase default max inbound bandwidth Increase minimum in/out bandwidths --- .../transport/FIFOBandwidthRefiller.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/router/java/src/net/i2p/router/transport/FIFOBandwidthRefiller.java b/router/java/src/net/i2p/router/transport/FIFOBandwidthRefiller.java index 3ba1515af..0d662183e 100644 --- a/router/java/src/net/i2p/router/transport/FIFOBandwidthRefiller.java +++ b/router/java/src/net/i2p/router/transport/FIFOBandwidthRefiller.java @@ -49,7 +49,7 @@ public class FIFOBandwidthRefiller implements Runnable { //public static final String PROP_REPLENISH_FREQUENCY = "i2np.bandwidth.replenishFrequencyMs"; // no longer allow unlimited bandwidth - the user must specify a value, else use defaults below (KBps) - public static final int DEFAULT_INBOUND_BANDWIDTH = 96; + public static final int DEFAULT_INBOUND_BANDWIDTH = 300; /** * Caution, do not make DEFAULT_OUTBOUND_BANDWIDTH * DEFAULT_SHARE_PCT > 32 * without thinking about the implications (default connection limits, for example) @@ -57,19 +57,19 @@ public class FIFOBandwidthRefiller implements Runnable { * adjusting bandwidth class boundaries. */ public static final int DEFAULT_OUTBOUND_BANDWIDTH = 60; - public static final int DEFAULT_INBOUND_BURST_BANDWIDTH = 96; + public static final int DEFAULT_INBOUND_BURST_BANDWIDTH = 300; public static final int DEFAULT_OUTBOUND_BURST_BANDWIDTH = 60; public static final int DEFAULT_BURST_SECONDS = 60; - /** For now, until there is some tuning and safe throttling, we set the floor at 3KBps inbound */ - public static final int MIN_INBOUND_BANDWIDTH = 3; - /** For now, until there is some tuning and safe throttling, we set the floor at 3KBps outbound */ - public static final int MIN_OUTBOUND_BANDWIDTH = 3; - /** For now, until there is some tuning and safe throttling, we set the floor at a 3KBps during burst */ - public static final int MIN_INBOUND_BANDWIDTH_PEAK = 3; - /** For now, until there is some tuning and safe throttling, we set the floor at a 3KBps during burst */ - public static final int MIN_OUTBOUND_BANDWIDTH_PEAK = 3; + /** For now, until there is some tuning and safe throttling, we set the floor at this inbound (KBps) */ + public static final int MIN_INBOUND_BANDWIDTH = 5; + /** For now, until there is some tuning and safe throttling, we set the floor at this outbound (KBps) */ + public static final int MIN_OUTBOUND_BANDWIDTH = 5; + /** For now, until there is some tuning and safe throttling, we set the floor at this during burst (KBps) */ + public static final int MIN_INBOUND_BANDWIDTH_PEAK = 5; + /** For now, until there is some tuning and safe throttling, we set the floor at this during burst (KBps) */ + public static final int MIN_OUTBOUND_BANDWIDTH_PEAK = 5; /** * Max for reasonable Bloom filter false positive rate. * Do not increase without adding a new Bloom filter size!