1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

more agressive purging of connections that give socket errors

This commit is contained in:
Charles Kerr 2007-10-01 18:09:59 +00:00
parent 4ebe0b563a
commit b84305cdf3

View file

@ -1539,10 +1539,9 @@ getWeakConnections( Torrent * t, int * setmeSize )
assert( atom != NULL );
/* if we're both seeds, give a little bit of time for
* a mutual pex -- peer-msgs initiates a pex exchange
* on startup -- and then disconnect */
if( peerIsSeed && clientIsSeed && (now-atom->time >= 30) )
if( peer->doPurge )
isWeak = TRUE;
if( peerIsSeed && clientIsSeed && (now-atom->time >= 30) ) /* pex time */
isWeak = TRUE;
else if( ( now - atom->time ) < LAISSEZ_FAIRE_PERIOD_SECS )
isWeak = FALSE;