I2CP: Reduce session limit to 50

Set limit to 0 if vmCommSystem
i2ptunnel: Do not retry if session limit exceeded
This commit is contained in:
zzz
2023-01-01 13:08:25 -05:00
parent 6bcc866f38
commit edfc9b1454
4 changed files with 11 additions and 3 deletions
@@ -835,6 +835,8 @@ public abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2
msg = "Failed to bind to the router on " + _options.getProperty(PROP_DOMAIN_SOCKET) + " and build tunnels";
else
msg = "Cannot connect to the router on " + _hostname + ':' + _portNum + " and build tunnels";
if (ioe.getMessage() != null)
msg += " - " + ioe.getMessage();
throw new I2PSessionException(getPrefix() + msg, ioe);
} finally {
if (success) {