forked from I2P_Developers/i2p.i2p
2005-04-05 jrandom
* Retry I2PTunnel startup if we are unable to build a socketManager for a client or httpclient tunnel. * Add some basic sanity checking on the I2CP settings (thanks duck!)
This commit is contained in:
@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
|
||||
*
|
||||
*/
|
||||
public class RouterVersion {
|
||||
public final static String ID = "$Revision: 1.179 $ $Date: 2005/04/03 07:50:12 $";
|
||||
public final static String ID = "$Revision: 1.180 $ $Date: 2005/04/05 11:06:15 $";
|
||||
public final static String VERSION = "0.5.0.5";
|
||||
public final static long BUILD = 4;
|
||||
public final static long BUILD = 5;
|
||||
public static void main(String args[]) {
|
||||
System.out.println("I2P Router version: " + VERSION);
|
||||
System.out.println("Router ID: " + RouterVersion.ID);
|
||||
|
@ -475,7 +475,7 @@ public class TunnelPool {
|
||||
int added = refreshBuilders();
|
||||
if ( (added > 0) && (_log.shouldLog(Log.WARN)) )
|
||||
_log.warn("Passive rebuilding a tunnel for " + TunnelPool.this.toString());
|
||||
requeue(60*1000);
|
||||
requeue(30*1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -269,8 +269,10 @@ public class TunnelPoolManager implements TunnelManagerFacade {
|
||||
synchronized (this) {
|
||||
if (_outstandingBuilds >= _maxOutstandingBuilds) {
|
||||
// ok, as a failsafe, always let one through
|
||||
_outstandingBuilds++;
|
||||
return 1;
|
||||
// nah, its failsafe for a reason. fix the cause.
|
||||
//_outstandingBuilds++;
|
||||
//return 1;
|
||||
return 0;
|
||||
}
|
||||
if (_outstandingBuilds + wanted < _maxOutstandingBuilds) {
|
||||
_outstandingBuilds += wanted;
|
||||
|
Reference in New Issue
Block a user