forked from I2P_Developers/i2p.i2p
merge of '1d3fdcc1394982ef7bc5c12b7aa163919c533096'
and '7069e4dcedf5578597d00177dd220e02ded3634e'
This commit is contained in:
@@ -341,6 +341,9 @@
|
||||
<copy todir="pkg-temp/docs/themes/console/light/" >
|
||||
<fileset dir="installer/resources/themes/console/light/" />
|
||||
</copy>
|
||||
<copy todir="pkg-temp/docs/" >
|
||||
<fileset dir="." includes="readme*.html" />
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<!-- this is no longer required, izpack 4.3.0 supports headless installs with java -jar i2pinstall.exe -console -->
|
||||
|
||||
@@ -31,7 +31,7 @@ class RouterThrottleImpl implements RouterThrottle {
|
||||
private static int THROTTLE_EVENT_LIMIT = 30;
|
||||
|
||||
private static final String PROP_MAX_TUNNELS = "router.maxParticipatingTunnels";
|
||||
private static final int DEFAULT_MAX_TUNNELS = 2000;
|
||||
private static final int DEFAULT_MAX_TUNNELS = 3000;
|
||||
private static final String PROP_DEFAULT_KBPS_THROTTLE = "router.defaultKBpsThrottle";
|
||||
private static final String PROP_MAX_PROCESSINGTIME = "router.defaultProcessingTimeThrottle";
|
||||
private static final int DEFAULT_MAX_PROCESSINGTIME = 1500;
|
||||
|
||||
@@ -49,7 +49,7 @@ public class TunnelPoolSettings {
|
||||
// public static final int DEFAULT_REBUILD_PERIOD = 60*1000;
|
||||
public static final int DEFAULT_DURATION = 10*60*1000;
|
||||
public static final int DEFAULT_LENGTH = 2;
|
||||
public static final int DEFAULT_LENGTH_VARIANCE = 1;
|
||||
public static final int DEFAULT_LENGTH_VARIANCE = 0;
|
||||
public static final boolean DEFAULT_ALLOW_ZERO_HOP = true;
|
||||
public static final int DEFAULT_IP_RESTRICTION = 2; // class B (/16)
|
||||
|
||||
|
||||
@@ -508,8 +508,15 @@ class BuildHandler {
|
||||
* Being a IBGW or OBEP generally leads to more connections, so if we are
|
||||
* approaching our connection limit (i.e. !haveCapacity()),
|
||||
* reject this request.
|
||||
*
|
||||
* Don't do this for class O, under the assumption that they are already talking
|
||||
* to most of the routers, so there's no reason to reject. This may drive them
|
||||
* to their conn. limits, but it's hopefully a temporary solution to the
|
||||
* tunnel build congestion. As the net grows this will have to be revisited.
|
||||
*/
|
||||
RouterInfo ri = _context.router().getRouterInfo();
|
||||
if (response == 0 &&
|
||||
(ri == null || ri.getBandwidthTier().charAt(0) != 'O') &&
|
||||
((isInGW && ! _context.commSystem().haveInboundCapacity(87)) ||
|
||||
(isOutEnd && ! _context.commSystem().haveOutboundCapacity(87)))) {
|
||||
_context.throttle().setTunnelStatus("Rejecting tunnels: Connection limit");
|
||||
|
||||
Reference in New Issue
Block a user