From b84305cdf33ab31f983fe46e07f341bd5a42516c Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 1 Oct 2007 18:09:59 +0000 Subject: [PATCH] more agressive purging of connections that give socket errors --- libtransmission/peer-mgr.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 92208bda8..87722deca 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -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;