Changeset 3960


Ignore:
Timestamp:
Nov 25, 2007, 5:07:12 PM (15 years ago)
Author:
charles
Message:

fix peer-mgr.c shear between 0.9x and trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r3958 r3960  
    6161 * all of our peers.  This too helps prevent gridlock.
    6262 */
    63 static const double SWIFT_LARGESSE = 0.10; /* 10% of our UL */
     63static const double SWIFT_LARGESSE = 0.15; /* 15% of our UL */
    6464
    6565/**
     
    102102    /* set this too high and there will be a lot of churn.
    103103     * set it too low and you'll get peers too slowly */
    104     MAX_RECONNECTIONS_PER_PULSE = 5,
     104    MAX_RECONNECTIONS_PER_PULSE = 3,
    105105
    106106    /* corresponds to ut_pex's added.f flags */
     
    17721772
    17731773        /* if we used this peer recently, give someone else a turn */
    1774         minWait = 10; /* ten seconds */
     1774        minWait = 60;
    17751775        maxWait = (60 * 20); /* twenty minutes */
    1776         wait = atom->numFails * 30; /* add 15 secs to the wait interval for each consecutive failure*/
     1776        wait = atom->numFails * 30; /* add 30 secs to the wait interval for each consecutive failure*/
    17771777        if( wait < minWait ) wait = minWait;
    17781778        if( wait > maxWait ) wait = maxWait;
Note: See TracChangeset for help on using the changeset viewer.