I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 8a1db311 authored by zzz's avatar zzz
Browse files

reduce max msg delay

parent 820c5734
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ class RouterThrottleImpl implements RouterThrottle { ...@@ -34,7 +34,7 @@ class RouterThrottleImpl implements RouterThrottle {
private static final int DEFAULT_MAX_TUNNELS = 2500; private static final int DEFAULT_MAX_TUNNELS = 2500;
private static final String PROP_DEFAULT_KBPS_THROTTLE = "router.defaultKBpsThrottle"; private static final String PROP_DEFAULT_KBPS_THROTTLE = "router.defaultKBpsThrottle";
private static final String PROP_MAX_PROCESSINGTIME = "router.defaultProcessingTimeThrottle"; private static final String PROP_MAX_PROCESSINGTIME = "router.defaultProcessingTimeThrottle";
private static final int DEFAULT_MAX_PROCESSINGTIME = 1500; private static final int DEFAULT_MAX_PROCESSINGTIME = 1250;
/** tunnel acceptance */ /** tunnel acceptance */
public static final int TUNNEL_ACCEPT = 0; public static final int TUNNEL_ACCEPT = 0;
...@@ -137,7 +137,7 @@ class RouterThrottleImpl implements RouterThrottle { ...@@ -137,7 +137,7 @@ class RouterThrottleImpl implements RouterThrottle {
_log.warn("Refusing tunnel request due to sendProcessingTime of " + avgSendProcessingTime _log.warn("Refusing tunnel request due to sendProcessingTime of " + avgSendProcessingTime
+ " ms over the last two minutes, which is too much."); + " ms over the last two minutes, which is too much.");
} }
setTunnelStatus("Rejecting tunnels: congestion"); setTunnelStatus("Rejecting tunnels: High message delay");
return TunnelHistory.TUNNEL_REJECT_BANDWIDTH; return TunnelHistory.TUNNEL_REJECT_BANDWIDTH;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment