Changeset 819b35c7


Ignore:
Timestamp:
Mar 16, 2015 3:20:03 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
7e4832d
Parents:
071498c
Message:

Router: Increase exploratory tunnel quantity if floodfill

File:
1 edited

Legend:

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

    r071498c r819b35c7  
    325325     *  could be different too, and inbound is harder...
    326326     *
     327     *  As of 0.9.19, add more if exploratory and floodfill, as floodfills
     328     *  generate a lot of exploratory traffic.
     329     *  TODO high-bandwidth non-floodfills do also...
     330     *
    327331     *  @since 0.8.11
    328332     */
    329333    private int getAdjustedTotalQuantity() {
    330334        int rv = _settings.getTotalQuantity();
     335        if (_settings.isExploratory() && _context.netDb().floodfillEnabled())
     336            rv += 3;
    331337        if (_settings.isExploratory() && rv > 1) {
    332338            RateStat e = _context.statManager().getRate("tunnel.buildExploratoryExpire");
Note: See TracChangeset for help on using the changeset viewer.