From 478884660fa428f8fa1581f4e81d2d2aa27a3cb4 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sat, 29 Aug 2009 13:55:59 +0000 Subject: Enable limiting fullscrapes to only every 5 minutes per IP --- trackerlogic.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'trackerlogic.h') diff --git a/trackerlogic.h b/trackerlogic.h index 7d9c2e1..5a40055 100644 --- a/trackerlogic.h +++ b/trackerlogic.h @@ -36,6 +36,10 @@ typedef struct { ot_ip6 address; int bits; } #define OT_CLIENT_REQUEST_INTERVAL_RANDOM ( OT_CLIENT_REQUEST_INTERVAL - OT_CLIENT_REQUEST_VARIATION/2 + (int)( random( ) % OT_CLIENT_REQUEST_VARIATION ) ) +/* If WANT_MODEST_FULLSCRAPES is on, ip addresses may not + fullscrape more frequently than this amount in seconds */ +#define OT_MODEST_PEER_TIMEOUT (60*5) + /* If peers come back before 10 minutes, don't live sync them */ #define OT_CLIENT_SYNC_RENEW_BOUNDARY 10 -- cgit v1.2.3