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:
parent
4ebe0b563a
commit
b84305cdf3
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue