Changeset 3322


Ignore:
Timestamp:
Oct 8, 2007, 1:53:11 AM (15 years ago)
Author:
charles
Message:

the purge flag should take priority over all the other reasons to keep or purge a peer. :p

File:
1 edited

Legend:

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

    r3321 r3322  
    10481048                continue;
    10491049
    1050             peer->doPurge = 1;
    10511050            atom = getExistingAtom( t, &peer->in_addr );
    10521051            atom->myflags |= MYFLAG_BANNED;
     1052            peer->doPurge = 1;
    10531053            tordbg( t, "banning peer %s due to corrupt data", tr_peerIoAddrStr(&atom->addr,atom->port) );
    10541054        }
     
    15111511        assert( atom != NULL );
    15121512
    1513         if( throughput >= 3 )
     1513        if( peer->doPurge )
     1514            isWeak = TRUE;
     1515        else if( throughput >= 3 )
    15141516            isWeak = FALSE;
    1515         else if( peer->doPurge )
    1516             isWeak = TRUE;
    15171517        else if( peerIsSeed && clientIsSeed )
    15181518            isWeak = t->tor->pexDisabled || (now-atom->time>=30);
Note: See TracChangeset for help on using the changeset viewer.