Changeset f543a45


Ignore:
Timestamp:
May 20, 2019 11:17:18 AM (11 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b3cb094
Parents:
099cacd
Message:

Tunnels: Increase tunnel reuse probability

File:
1 edited

Legend:

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

    r099cacd rf543a45  
    11321132            if (len < 0)
    11331133                len = settings.getLength();
    1134             if (len > 0 && (!settings.isExploratory()) && _context.random().nextBoolean()) {
     1134            if (len > 0 && (!settings.isExploratory()) && _context.random().nextInt(4) < 3) {  // 75%
    11351135                // look for a tunnel to reuse, if the right length and expiring soon
    11361136                // ignore variance for now.
Note: See TracChangeset for help on using the changeset viewer.