1
0
Fork 0
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:
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 ); 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;