From 893b0c10a3cbbb44778942983a5859ca90bbddc0 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 3 Jan 2008 05:30:45 +0000 Subject: [PATCH] to try to prevent router overloads, make (MAX_RECONNECTIONS_PER_PULSE * RECONNECT_PERIOD_MSEC) smaller. --- libtransmission/peer-mgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 0b83d0219..922656c1d 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -93,9 +93,9 @@ enum /* when few peers are available, keep idle ones this long */ MAX_UPLOAD_IDLE_SECS = (60 * 10), - /* set this too high and there will be a lot of churn. - * set it too low and you'll get peers too slowly */ - MAX_RECONNECTIONS_PER_PULSE = 2, + /* if this * RECONNECT_PERIOD_MSEC is too high, routers die. + * if this * RECONNECT_PERIOD_MSEC it too low, peers come slow. */ + MAX_RECONNECTIONS_PER_PULSE = 1, /* corresponds to ut_pex's added.f flags */ ADDED_F_ENCRYPTION_FLAG = 1,