mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +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 );
|
assert( atom != NULL );
|
||||||
|
|
||||||
/* if we're both seeds, give a little bit of time for
|
if( peer->doPurge )
|
||||||
* a mutual pex -- peer-msgs initiates a pex exchange
|
isWeak = TRUE;
|
||||||
* on startup -- and then disconnect */
|
if( peerIsSeed && clientIsSeed && (now-atom->time >= 30) ) /* pex time */
|
||||||
if( peerIsSeed && clientIsSeed && (now-atom->time >= 30) )
|
|
||||||
isWeak = TRUE;
|
isWeak = TRUE;
|
||||||
else if( ( now - atom->time ) < LAISSEZ_FAIRE_PERIOD_SECS )
|
else if( ( now - atom->time ) < LAISSEZ_FAIRE_PERIOD_SECS )
|
||||||
isWeak = FALSE;
|
isWeak = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue