2004-10-14 jrandom
* Tunnel rejection is no longer a sign of an overwhelmingly loaded peer, so don't use it as a key point of the IsFailing calculator. We still use it as a key point of the Capacity calculator, however.
This commit is contained in:
@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
|
||||
*
|
||||
*/
|
||||
public class RouterVersion {
|
||||
public final static String ID = "$Revision: 1.53 $ $Date: 2004/10/13 14:40:47 $";
|
||||
public final static String ID = "$Revision: 1.54 $ $Date: 2004/10/14 15:02:45 $";
|
||||
public final static String VERSION = "0.4.1.2";
|
||||
public final static long BUILD = 3;
|
||||
public final static long BUILD = 4;
|
||||
public static void main(String args[]) {
|
||||
System.out.println("I2P Router version: " + VERSION);
|
||||
System.out.println("Router ID: " + RouterVersion.ID);
|
||||
|
@ -46,13 +46,16 @@ public class IsFailingCalculator extends Calculator {
|
||||
// return true;
|
||||
//}
|
||||
|
||||
Rate rejectRate = profile.getTunnelHistory().getRejectionRate().getRate(10*60*1000);
|
||||
if (rejectRate.getCurrentEventCount() >= 2) {
|
||||
if (_log.shouldLog(Log.DEBUG))
|
||||
_log.debug("Peer " + profile.getPeer().toBase64()
|
||||
+ " is failing because they rejected some tunnels recently");
|
||||
return true;
|
||||
}
|
||||
// this doesn't make sense with probabalistic rejections - we should be
|
||||
// adequately dampening the capacity so these peers aren't queried
|
||||
|
||||
//Rate rejectRate = profile.getTunnelHistory().getRejectionRate().getRate(10*60*1000);
|
||||
//if (rejectRate.getCurrentEventCount() >= 2) {
|
||||
// if (_log.shouldLog(Log.DEBUG))
|
||||
// _log.debug("Peer " + profile.getPeer().toBase64()
|
||||
// + " is failing because they rejected some tunnels recently");
|
||||
// return true;
|
||||
//}
|
||||
|
||||
////
|
||||
// the right way to behave would be to use some statistical
|
||||
|
Reference in New Issue
Block a user