Increase default class O conn. limits to 350 NTCP, 1050 SSU

This commit is contained in:
zzz
2014-12-05 15:27:24 +00:00
parent 0a7a637d46
commit bf3fdbb1ab

View File

@@ -143,8 +143,24 @@ public abstract class TransportImpl implements Transport {
RouterInfo ri = _context.router().getRouterInfo();
if (ri != null) {
char bw = ri.getBandwidthTier().charAt(0);
if (bw > Router.CAPABILITY_BW12 && bw <= Router.CAPABILITY_BW256)
def *= (1 + bw - Router.CAPABILITY_BW12);
switch (bw) {
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()) {
// && !SystemVersion.isWindows()) {