Changeset ef32d370


Ignore:
Timestamp:
Mar 21, 2015 12:13:22 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b2e908f
Parents:
f0961a9
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/tunnel/pool/TunnelPool.java

    rf0961a9 ref32d370  
    333333    private int getAdjustedTotalQuantity() {
    334334        int rv = _settings.getTotalQuantity();
    335         if (_settings.isExploratory() && _context.netDb().floodfillEnabled())
    336             rv += 3;
     335        // TODO high-bw non-ff also
     336        if (_settings.isExploratory() && _context.netDb().floodfillEnabled() &&
     337            _context.router().getUptime() > 5*60*1000) {
     338            rv += 2;
     339        }
    337340        if (_settings.isExploratory() && rv > 1) {
    338341            RateStat e = _context.statManager().getRate("tunnel.buildExploratoryExpire");
Note: See TracChangeset for help on using the changeset viewer.