forked from I2P_Developers/i2p.i2p
* Throttle: Use BANDWIDTH rather than CRIT as the rejection reason at
startup, so peers don't list us as failing.
This commit is contained in:
@ -91,8 +91,9 @@ class RouterThrottleImpl implements RouterThrottle {
|
||||
return TunnelHistory.TUNNEL_REJECT_CRIT;
|
||||
}
|
||||
|
||||
// Don't use CRIT because we don't want peers to think we're failing
|
||||
if (_context.router().getUptime() < 20*60*1000)
|
||||
return TunnelHistory.TUNNEL_REJECT_CRIT;
|
||||
return TunnelHistory.TUNNEL_REJECT_BANDWIDTH;
|
||||
|
||||
long lag = _context.jobQueue().getMaxLag();
|
||||
// reject here if lag too high???
|
||||
|
Reference in New Issue
Block a user