forked from I2P_Developers/i2p.i2p
lower the max limit
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2011-02-23 zzz
|
||||
* BuildHandler: Lower participating throttler max limit
|
||||
|
||||
2011-02-22 zzz
|
||||
* BuildHandler: Prelmiinary participating tunnel throttler
|
||||
* I2PTunnel:
|
||||
|
||||
@@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 17;
|
||||
public final static long BUILD = 18;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "-rc";
|
||||
|
||||
@@ -19,6 +19,9 @@ import net.i2p.util.SimpleTimer;
|
||||
* This also effectively limits the number of tunnels between
|
||||
* any given pair of routers, which probably isn't a bad thing.
|
||||
*
|
||||
* Note that the actual limits will be higher than specified
|
||||
* by up to 1 / LIFETIME_PORTION because the counter window resets.
|
||||
*
|
||||
* Note that the counts are of previous + next hops, so the total will
|
||||
* be higher than the participating tunnel count, and will also grow
|
||||
* as the network uses more 3-hop tunnels.
|
||||
@@ -32,9 +35,9 @@ class ParticipatingThrottler {
|
||||
/** portion of the tunnel lifetime */
|
||||
private static final int LIFETIME_PORTION = 3;
|
||||
private static final int MIN_LIMIT = 18 / LIFETIME_PORTION;
|
||||
private static final int MAX_LIMIT = 81 / LIFETIME_PORTION;
|
||||
private static final int MAX_LIMIT = 66 / LIFETIME_PORTION;
|
||||
private static final int PERCENT_LIMIT = 12 / LIFETIME_PORTION;
|
||||
private static final long CLEAN_TIME = 10*60*1000 / LIFETIME_PORTION;
|
||||
private static final long CLEAN_TIME = 11*60*1000 / LIFETIME_PORTION;
|
||||
|
||||
ParticipatingThrottler(RouterContext ctx) {
|
||||
this.context = ctx;
|
||||
|
||||
Reference in New Issue
Block a user