Changeset 143a0df


Ignore:
Timestamp:
Nov 23, 2013 2:29:23 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
74f2fd0
Parents:
844bae1
Message:

Transport: Reduce target connections from 60% to 45% of limit.

This will improve network capacity.
Apparent problems with lower limits were actually due to
unrelated bugs that were fixed by 0.9.8.1-22.
This can go lower still; I've been testing 33% without issues.

Location:
router/java/src/net/i2p/router/transport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/ntcp/EventPumper.java

    r844bae1 r143a0df  
    212212
    213213                        // Increase allowed idle time if we are well under allowed connections, otherwise decrease
    214                         if (_transport.haveCapacity(60))
     214                        if (_transport.haveCapacity(45))
    215215                            _expireIdleWriteTime = Math.min(_expireIdleWriteTime + 1000, MAX_EXPIRE_IDLE_TIME);
    216216                        else
  • router/java/src/net/i2p/router/transport/udp/UDPTransport.java

    r844bae1 r143a0df  
    28492849        public void timeReached() {
    28502850            // Increase allowed idle time if we are well under allowed connections, otherwise decrease
    2851             if (haveCapacity(60)) {
     2851            if (haveCapacity(45)) {
    28522852                long inc;
    28532853                // don't adjust too quickly if we are looping fast
Note: See TracChangeset for help on using the changeset viewer.