Changeset 9592


Ignore:
Timestamp:
Nov 26, 2009, 6:38:37 PM (13 years ago)
Author:
charles
Message:

(trunk libT) #2430 "peer atom pool grows too large" -- tweak the default atom shelf lives based on discussion in the ticket's comments section

File:
1 edited

Legend:

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

    r9582 r9592  
    13981398    switch( from )
    13991399    {
    1400         case TR_PEER_FROM_INCOMING : return 60 * 60 * 8;
    1401         case TR_PEER_FROM_LTEP     : return 60 * 60 * 8;
    1402         case TR_PEER_FROM_TRACKER  : return 60 * 60 * 4;
     1400        case TR_PEER_FROM_INCOMING : return 60 * 60 * 6;
     1401        case TR_PEER_FROM_LTEP     : return 60 * 60 * 6;
     1402        case TR_PEER_FROM_TRACKER  : return 60 * 60 * 3;
     1403        case TR_PEER_FROM_DHT      : return 60 * 60 * 3;
    14031404        case TR_PEER_FROM_PEX      : return 60 * 60 * 2;
    14041405        case TR_PEER_FROM_RESUME   : return 60 * 60;
    1405         case TR_PEER_FROM_DHT      : return 60 * 40;
    1406         default                    : return 60 * 60;           
     1406        default                    : return 60 * 60;
    14071407    }
    14081408}
     
    14231423    {
    14241424        struct peer_atom * a;
    1425         const int jitter = tr_cryptoWeakRandInt( 120 );
     1425        const int jitter = tr_cryptoWeakRandInt( 60*10 );
    14261426
    14271427        a = tr_new0( struct peer_atom, 1 );
Note: See TracChangeset for help on using the changeset viewer.