* NetDb: Lower min RouterInfo expiration to 2.5h (was 3h)

* i2psnark debug logging tweak
This commit is contained in:
zzz
2010-02-03 14:21:55 +00:00
parent 6801fc667a
commit 746c1bd628
5 changed files with 13 additions and 5 deletions

View File

@ -105,8 +105,8 @@ class PeerCheckerTask extends TimerTask
peer.resetCounters(); peer.resetCounters();
_util.debug(peer + ":", Snark.DEBUG); _util.debug(peer + ":", Snark.DEBUG);
_util.debug(" ul: " + upload/KILOPERSECOND _util.debug(" ul: " + upload*1024/KILOPERSECOND
+ " dl: " + download/KILOPERSECOND + " dl: " + download*1024/KILOPERSECOND
+ " i: " + peer.isInterested() + " i: " + peer.isInterested()
+ " I: " + peer.isInteresting() + " I: " + peer.isInteresting()
+ " c: " + peer.isChoking() + " c: " + peer.isChoking()

View File

@ -1,3 +1,10 @@
2010-02-03 zzz
* Console:
- Hide update buttons and update config if install dir is readonly or if configured
- Show yellow star if no outbound tunnels
* i2psnark: Don't prefer to opportunistically unchoke unchoking peers when not interested
* NetDb: Lower min RouterInfo expiration to 2.5h (was 3h)
2010-01-31 zzz 2010-01-31 zzz
* i2psnark standalone: Fix CSS * i2psnark standalone: Fix CSS
* Jetty: Update to 5.1.15 to get ResourceHandler fix * Jetty: Update to 5.1.15 to get ResourceHandler fix

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */ /** deprecated */
public final static String ID = "Monotone"; public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION; public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 6; public final static long BUILD = 7;
/** for example "-test" */ /** for example "-test" */
public final static String EXTRA = ""; public final static String EXTRA = "";

View File

@ -121,7 +121,7 @@ public class KademliaNetworkDatabaseFacade extends NetworkDatabaseFacade {
* know anyone or just started up) -- see validate() below * know anyone or just started up) -- see validate() below
*/ */
private final static long ROUTER_INFO_EXPIRATION = 3*24*60*60*1000l; private final static long ROUTER_INFO_EXPIRATION = 3*24*60*60*1000l;
private final static long ROUTER_INFO_EXPIRATION_MIN = 3*60*60*1000l; private final static long ROUTER_INFO_EXPIRATION_MIN = 150*60*1000l;
private final static long ROUTER_INFO_EXPIRATION_SHORT = 90*60*1000l; private final static long ROUTER_INFO_EXPIRATION_SHORT = 90*60*1000l;
private final static long ROUTER_INFO_EXPIRATION_FLOODFILL = 60*60*1000l; private final static long ROUTER_INFO_EXPIRATION_FLOODFILL = 60*60*1000l;

View File

@ -152,6 +152,7 @@ class PersistentDataStore extends TransientDataStore {
} }
public String getName() { return "Remove Key"; } public String getName() { return "Remove Key"; }
public void runJob() { public void runJob() {
if (_log.shouldLog(Log.INFO))
_log.info("Removing key " + _key /* , getAddedBy() */); _log.info("Removing key " + _key /* , getAddedBy() */);
try { try {
File dbDir = getDbDir(); File dbDir = getDbDir();