mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-05-14 05:25:10 +00:00
Router: Change cap for sym. nat, for now
This commit is contained in:
@@ -1239,7 +1239,8 @@ public class Router implements RouterClock.ClockShiftListener {
|
||||
char cong = 0;
|
||||
int maxTunnels = _context.getProperty(RouterThrottleImpl.PROP_MAX_TUNNELS, RouterThrottleImpl.DEFAULT_MAX_TUNNELS);
|
||||
if (forceG || maxTunnels <= 0) {
|
||||
cong = CAPABILITY_NO_TUNNELS;
|
||||
//cong = CAPABILITY_NO_TUNNELS;
|
||||
cong = CAPABILITY_CONGESTION_SEVERE;
|
||||
} else if (maxTunnels <= 50 || SystemVersion.isSlow()) {
|
||||
cong = CAPABILITY_CONGESTION_MODERATE;
|
||||
} else {
|
||||
@@ -1261,7 +1262,8 @@ public class Router implements RouterClock.ClockShiftListener {
|
||||
Math.min(_context.bandwidthLimiter().getInboundKBytesPerSecond(),
|
||||
_context.bandwidthLimiter().getOutboundKBytesPerSecond());
|
||||
if (bwLim < 4*1024) {
|
||||
cong = CAPABILITY_NO_TUNNELS;
|
||||
//cong = CAPABILITY_NO_TUNNELS;
|
||||
cong = CAPABILITY_CONGESTION_SEVERE;
|
||||
} else {
|
||||
RateStat rs = _context.statManager().getRate("tunnel.participatingMessageCountAvgPerTunnel");
|
||||
double messagesPerTunnel = 0;
|
||||
|
||||
Reference in New Issue
Block a user