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

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

TunnelPool: Reduce expl. quantity adder for ff since we're

doing mostly direct lookups now, and delay adding them at
startup to give client tunnels a chance
parent f0961a96
No related branches found
No related tags found
No related merge requests found
......@@ -332,8 +332,11 @@ public class TunnelPool {
*/
private int getAdjustedTotalQuantity() {
int rv = _settings.getTotalQuantity();
if (_settings.isExploratory() && _context.netDb().floodfillEnabled())
rv += 3;
// TODO high-bw non-ff also
if (_settings.isExploratory() && _context.netDb().floodfillEnabled() &&
_context.router().getUptime() > 5*60*1000) {
rv += 2;
}
if (_settings.isExploratory() && rv > 1) {
RateStat e = _context.statManager().getRate("tunnel.buildExploratoryExpire");
RateStat r = _context.statManager().getRate("tunnel.buildExploratoryReject");
......
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