I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 25378e89 authored by jrandom's avatar jrandom Committed by zzz
Browse files

less aggressive removal of peer references

logging
parent 3b9fea20
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ public class Shitlist {
wasAlready = (null == oldDate);
}
_context.netDb().fail(peer);
//_context.netDb().fail(peer);
_context.tunnelManager().peerFailed(peer);
return wasAlready;
}
......
......@@ -32,7 +32,7 @@ class ExpireRoutersJob extends JobImpl {
private Log _log;
private KademliaNetworkDatabaseFacade _facade;
private final static long RERUN_DELAY_MS = 30*1000;
private final static long RERUN_DELAY_MS = 120*1000;
/**
* If a routerInfo structure isn't updated within an hour, drop it
* and search for a later version. This value should be large enough
......
......@@ -506,13 +506,15 @@ public class KademliaNetworkDatabaseFacade extends NetworkDatabaseFacade {
if (isRouterInfo) {
int remaining = _kb.size();
if (remaining < MIN_REMAINING_ROUTERS) {
_log.warn("Not removing " + dbEntry + " because we have so few routers left ("
+ remaining + ") - perhaps a reseed is necessary?");
if (_log.shouldLog(Log.ERROR))
_log.error("Not removing " + dbEntry + " because we have so few routers left ("
+ remaining + ") - perhaps a reseed is necessary?");
return;
}
if (System.currentTimeMillis() < _started + DONT_FAIL_PERIOD) {
_log.warn("Not failing the key " + dbEntry.toBase64()
+ " since we've just started up and don't want to drop /everyone/");
if (_log.shouldLog(Log.WARN))
_log.warn("Not failing the key " + dbEntry.toBase64()
+ " since we've just started up and don't want to drop /everyone/");
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment