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

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

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

parent 0a7a637d
No related branches found
No related tags found
No related merge requests found
...@@ -143,8 +143,24 @@ public abstract class TransportImpl implements Transport { ...@@ -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()) {
......
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