2005-02-23 jrandom
* Now that we don't get stale SAM sessions, it'd be nice if we didn't get stale tunnel pools, don't you think?
This commit is contained in:
@ -1,4 +1,8 @@
|
||||
$Id: history.txt,v 1.153 2005/02/22 23:20:29 jrandom Exp $
|
||||
$Id: history.txt,v 1.154 2005/02/23 00:00:53 jrandom Exp $
|
||||
|
||||
2005-02-23 jrandom
|
||||
* Now that we don't get stale SAM sessions, it'd be nice if we didn't
|
||||
get stale tunnel pools, don't you think?
|
||||
|
||||
* 2005-02-23 0.5.0.1 released
|
||||
|
||||
|
@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
|
||||
*
|
||||
*/
|
||||
public class RouterVersion {
|
||||
public final static String ID = "$Revision: 1.148 $ $Date: 2005/02/22 23:20:29 $";
|
||||
public final static String ID = "$Revision: 1.149 $ $Date: 2005/02/23 00:00:53 $";
|
||||
public final static String VERSION = "0.5.0.1";
|
||||
public final static long BUILD = 0;
|
||||
public final static long BUILD = 1;
|
||||
public static void main(String args[]) {
|
||||
System.out.println("I2P Router version: " + VERSION);
|
||||
System.out.println("Router ID: " + RouterVersion.ID);
|
||||
|
@ -23,6 +23,6 @@ class RebuildJob extends JobImpl {
|
||||
}
|
||||
public String getName() { return "Rebuild tunnel"; }
|
||||
public void runJob() {
|
||||
_pool.getBuilder().buildTunnel(getContext(), _pool);
|
||||
_pool.refreshBuilders();
|
||||
}
|
||||
}
|
@ -31,6 +31,7 @@ public class TunnelBuilder {
|
||||
buildTunnel(ctx, pool, false);
|
||||
}
|
||||
public void buildTunnel(RouterContext ctx, TunnelPool pool, boolean zeroHop) {
|
||||
if (!pool.isAlive()) return;
|
||||
// this is probably overkill (ya think?)
|
||||
pool.refreshSettings();
|
||||
|
||||
|
@ -81,6 +81,8 @@ public class TunnelPool {
|
||||
*
|
||||
*/
|
||||
int refreshBuilders() {
|
||||
if ( (_settings.getDestination() != null) && (!_context.clientManager().isLocal(_settings.getDestination())) )
|
||||
_alive = false;
|
||||
if (!_alive) return 0;
|
||||
// only start up new build tasks if we need more of 'em
|
||||
int target = _settings.getQuantity() + _settings.getBackupQuantity();
|
||||
|
Reference in New Issue
Block a user