forked from I2P_Developers/i2p.i2p
Increase default class O conn. limits to 350 NTCP, 1050 SSU
This commit is contained in:
@@ -143,8 +143,24 @@ public abstract class TransportImpl implements Transport {
|
|||||||
RouterInfo ri = _context.router().getRouterInfo();
|
RouterInfo ri = _context.router().getRouterInfo();
|
||||||
if (ri != null) {
|
if (ri != null) {
|
||||||
char bw = ri.getBandwidthTier().charAt(0);
|
char bw = ri.getBandwidthTier().charAt(0);
|
||||||
if (bw > Router.CAPABILITY_BW12 && bw <= Router.CAPABILITY_BW256)
|
switch (bw) {
|
||||||
def *= (1 + bw - Router.CAPABILITY_BW12);
|
case Router.CAPABILITY_BW12:
|
||||||
|
case 'u': // unknown
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
case Router.CAPABILITY_BW32:
|
||||||
|
def *= 2;
|
||||||
|
break;
|
||||||
|
case Router.CAPABILITY_BW64:
|
||||||
|
def *= 3;
|
||||||
|
break;
|
||||||
|
case Router.CAPABILITY_BW128:
|
||||||
|
def *= 4;
|
||||||
|
break;
|
||||||
|
case Router.CAPABILITY_BW256:
|
||||||
|
def *= 7;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (_context.netDb().floodfillEnabled()) {
|
if (_context.netDb().floodfillEnabled()) {
|
||||||
// && !SystemVersion.isWindows()) {
|
// && !SystemVersion.isWindows()) {
|
||||||
|
Reference in New Issue
Block a user