Changeset e193d89


Ignore:
Timestamp:
Oct 6, 2011 4:44:33 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
7748147
Parents:
de71286
Message:

increase default SSU conn limit

File:
1 edited

Legend:

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

    rde71286 re193d89  
    8484     */
    8585    public int countPeers() { return countActivePeers(); }
     86
    8687    /**
    8788     * How many peers active in the last few minutes?
    8889     */
    8990    public int countActivePeers() { return 0; }
     91
    9092    /**
    9193     * How many peers are we actively sending messages to (this minute)
     
    9395    public int countActiveSendPeers() { return 0; }
    9496
    95     /** Default is 500 for floodfills... */
     97    /** Default for floodfills... */
    9698    private static final int DEFAULT_MAX_CONNECTIONS = 425;
     99
    97100    /** ...and 50/100/150/200/250 for BW Tiers K/L/M/N/O */
    98101    private static final int MAX_CONNECTION_FACTOR = 50;
     102
    99103    /** Per-transport connection limit */
    100104    public int getMaxConnections() {
     
    114118        // increase limit for SSU, for now
    115119        if (style.equals("udp"))
    116             def = def * 3 / 2;
     120            //def = def * 3 / 2;
     121            def *= 2;
    117122        return _context.getProperty("i2np." + style + ".maxConnections", def);
    118123    }
    119124
    120125    private static final int DEFAULT_CAPACITY_PCT = 75;
     126
    121127    /**
    122128     * Can we initiate or accept a connection to another peer, saving some margin
     
    139145
    140146    public List getMostRecentErrorMessages() { return Collections.EMPTY_LIST; }
     147
    141148    /**
    142149     * Nonblocking call to pull the next outbound message
Note: See TracChangeset for help on using the changeset viewer.