From 2acc0068074b3dab11cd2d4f07484b04db9cfdc3 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 27 Oct 2009 16:08:38 +0000 Subject: [PATCH] (trunk libT) There seems to be a lot of talk about T hosing routers, preventing other network traffic, etc. As an experiment let's try reducing the number of new connections we allow per second and see if/how that affects performance. --- libtransmission/peer-mgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index d47c1e088..e3932de03 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -63,11 +63,11 @@ enum MAX_UPLOAD_IDLE_SECS = ( 60 * 5 ), /* max # of peers to ask fer per torrent per reconnect pulse */ - MAX_RECONNECTIONS_PER_PULSE = 16, + MAX_RECONNECTIONS_PER_PULSE = 8, /* max number of peers to ask for per second overall. * this throttle is to avoid overloading the router */ - MAX_CONNECTIONS_PER_SECOND = 32, + MAX_CONNECTIONS_PER_SECOND = 16, /* number of bad pieces a peer is allowed to send before we ban them */ MAX_BAD_PIECES_PER_PEER = 5,