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

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

Tunnels: Improve expl. build success in well-connected routers during congestion

by not using high cap tier. Congestion starts from the top.
Right now, the fastest routers have the worst expl. build success.
This will help correct that.
parent bd4415ad
No related branches found
No related tags found
No related merge requests found
...@@ -275,6 +275,11 @@ class ExploratoryPeerSelector extends TunnelPeerSelector { ...@@ -275,6 +275,11 @@ class ExploratoryPeerSelector extends TunnelPeerSelector {
if (uptime <= 11*60*1000) { if (uptime <= 11*60*1000) {
failPct = 100 - MIN_NONFAILING_PCT; failPct = 100 - MIN_NONFAILING_PCT;
} else { } else {
// If well connected or ff, don't pick from high cap
// even during congestion, because congestion starts from the top
if (active > 500 || ctx.netDb().floodfillEnabled())
return false;
failPct = getExploratoryFailPercentage(); failPct = getExploratoryFailPercentage();
//Log l = ctx.logManager().getLog(getClass()); //Log l = ctx.logManager().getLog(getClass());
//if (l.shouldLog(Log.DEBUG)) //if (l.shouldLog(Log.DEBUG))
......
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