diff --git a/core/java/src/net/i2p/CoreVersion.java b/core/java/src/net/i2p/CoreVersion.java index 91569b751..8c24e7625 100644 --- a/core/java/src/net/i2p/CoreVersion.java +++ b/core/java/src/net/i2p/CoreVersion.java @@ -14,8 +14,8 @@ package net.i2p; * */ public class CoreVersion { - public final static String ID = "$Revision: 1.48 $ $Date: 2005/11/15 22:20:21 $"; - public final static String VERSION = "0.6.1.6"; + public final static String ID = "$Revision: 1.49 $ $Date: 2005/11/26 13:26:22 $"; + public final static String VERSION = "0.6.1.7"; public static void main(String args[]) { System.out.println("I2P Core version: " + VERSION); diff --git a/history.txt b/history.txt index 42bf1e1a2..bbb4d8b5a 100644 --- a/history.txt +++ b/history.txt @@ -1,4 +1,10 @@ -$Id: history.txt,v 1.339 2005/11/30 15:48:27 jrandom Exp $ +$Id: history.txt,v 1.340 2005/11/30 20:13:45 jrandom Exp $ + +* 2005-12-01 0.6.1.7 released + +2005-12-01 jrandom + * Add a new criteria to the tunnel join throttle, backing off people if we + are failing to talk to our peers more than usual. 2005-11-30 jrandom * Cleaned up the build process to deal with Jetty 5.1.6 and rename the diff --git a/initialNews.xml b/initialNews.xml index d049082ec..01b0a12ae 100644 --- a/initialNews.xml +++ b/initialNews.xml @@ -1,5 +1,5 @@ - - + i2p - 0.6.1.6 + 0.6.1.7 diff --git a/news.xml b/news.xml index 2f548b061..d9b95bf2a 100644 --- a/news.xml +++ b/news.xml @@ -1,5 +1,5 @@ - - + 100) { + long periods = r.getLifetimePeriods(); + long maxFailCount = r.getExtremeEventCount(); + if ( (periods > 0) && (maxFailCount > 100) ) { + if (_context.random().nextInt((int)maxFailCount) <= failCount) { + if (_log.shouldLog(Log.DEBUG)) + _log.debug("Refusing tunnel request with the job lag of " + lag + + "since the 1 minute message failure count is too high (" + failCount + "/" + maxFailCount + ")"); + _context.statManager().addRateData("router.throttleTunnelFailCount1m", (long)failCount, (long)maxFailCount); + return TunnelHistory.TUNNEL_REJECT_TRANSIENT_OVERLOAD; + } + } } + int numTunnels = _context.tunnelManager().getParticipatingCount(); + if (numTunnels > getMinThrottleTunnels()) { double growthFactor = getTunnelGrowthFactor(); Rate avgTunnels = _context.statManager().getRate("tunnel.participatingTunnels").getRate(60*60*1000); diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java index 9dd14eaf9..efdb1cd8a 100644 --- a/router/java/src/net/i2p/router/RouterVersion.java +++ b/router/java/src/net/i2p/router/RouterVersion.java @@ -15,9 +15,9 @@ import net.i2p.CoreVersion; * */ public class RouterVersion { - public final static String ID = "$Revision: 1.305 $ $Date: 2005/11/29 12:56:02 $"; - public final static String VERSION = "0.6.1.6"; - public final static long BUILD = 5; + public final static String ID = "$Revision: 1.306 $ $Date: 2005/11/30 15:48:26 $"; + public final static String VERSION = "0.6.1.7"; + public final static long BUILD = 0; public static void main(String args[]) { System.out.println("I2P Router version: " + VERSION + "-" + BUILD); System.out.println("Router ID: " + RouterVersion.ID);