diff options
| author | erdgeist <> | 2009-08-29 13:55:59 +0000 |
|---|---|---|
| committer | erdgeist <> | 2009-08-29 13:55:59 +0000 |
| commit | 478884660fa428f8fa1581f4e81d2d2aa27a3cb4 (patch) | |
| tree | 2f2081a44f5f49e750224a089d918e9926d7e40b /trackerlogic.h | |
| parent | 682bd069d28faf4145b0f01009080a06e2ccd45d (diff) | |
Enable limiting fullscrapes to only every 5 minutes per IP
Diffstat (limited to 'trackerlogic.h')
| -rw-r--r-- | trackerlogic.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; } | |||
| 36 | 36 | ||
| 37 | #define OT_CLIENT_REQUEST_INTERVAL_RANDOM ( OT_CLIENT_REQUEST_INTERVAL - OT_CLIENT_REQUEST_VARIATION/2 + (int)( random( ) % OT_CLIENT_REQUEST_VARIATION ) ) | 37 | #define OT_CLIENT_REQUEST_INTERVAL_RANDOM ( OT_CLIENT_REQUEST_INTERVAL - OT_CLIENT_REQUEST_VARIATION/2 + (int)( random( ) % OT_CLIENT_REQUEST_VARIATION ) ) |
| 38 | 38 | ||
| 39 | /* If WANT_MODEST_FULLSCRAPES is on, ip addresses may not | ||
| 40 | fullscrape more frequently than this amount in seconds */ | ||
| 41 | #define OT_MODEST_PEER_TIMEOUT (60*5) | ||
| 42 | |||
| 39 | /* If peers come back before 10 minutes, don't live sync them */ | 43 | /* If peers come back before 10 minutes, don't live sync them */ |
| 40 | #define OT_CLIENT_SYNC_RENEW_BOUNDARY 10 | 44 | #define OT_CLIENT_SYNC_RENEW_BOUNDARY 10 |
| 41 | 45 | ||
