diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-05 18:18:45 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-05 18:18:45 +0100 |
| commit | c6732a03cbf0efa815e8a857af8118878c053af0 (patch) | |
| tree | 6e774fd381c845f38de21f9abbfe1debe53dc56d /src/trackerlogic.h | |
| parent | 194fc0b2f7aa37ca25a9ea058eac699b2824e95a (diff) | |
Answer blacklisted torrent announces with an empty packet, that carries a re-announce timeout
Diffstat (limited to 'src/trackerlogic.h')
| -rw-r--r-- | src/trackerlogic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/trackerlogic.h b/src/trackerlogic.h index f6aa8cc..4f970ba 100644 --- a/src/trackerlogic.h +++ b/src/trackerlogic.h | |||
| @@ -39,12 +39,15 @@ typedef struct { | |||
| 39 | #define OT_CLIENT_TIMEOUT_SEND (60 * 15) | 39 | #define OT_CLIENT_TIMEOUT_SEND (60 * 15) |
| 40 | #define OT_CLIENT_REQUEST_INTERVAL (60 * 30) | 40 | #define OT_CLIENT_REQUEST_INTERVAL (60 * 30) |
| 41 | #define OT_CLIENT_REQUEST_VARIATION (60 * 6) | 41 | #define OT_CLIENT_REQUEST_VARIATION (60 * 6) |
| 42 | #define OT_CLIENT_REJECT_INTERVAL (60 * 120) | ||
| 42 | 43 | ||
| 43 | #define OT_TORRENT_TIMEOUT_HOURS 24 | 44 | #define OT_TORRENT_TIMEOUT_HOURS 24 |
| 44 | #define OT_TORRENT_TIMEOUT (60 * OT_TORRENT_TIMEOUT_HOURS) | 45 | #define OT_TORRENT_TIMEOUT (60 * OT_TORRENT_TIMEOUT_HOURS) |
| 45 | 46 | ||
| 46 | #define OT_CLIENT_REQUEST_INTERVAL_RANDOM \ | 47 | #define OT_CLIENT_REQUEST_INTERVAL_RANDOM \ |
| 47 | (OT_CLIENT_REQUEST_INTERVAL - OT_CLIENT_REQUEST_VARIATION / 2 + (int)(nrand48(ws->rand48_state) % OT_CLIENT_REQUEST_VARIATION)) | 48 | (OT_CLIENT_REQUEST_INTERVAL - OT_CLIENT_REQUEST_VARIATION / 2 + (int)(nrand48(ws->rand48_state) % OT_CLIENT_REQUEST_VARIATION)) |
| 49 | #define OT_CLIENT_REJECT_INTERVAL_RANDOM \ | ||
| 50 | (OT_CLIENT_REJECT_INTERVAL - OT_CLIENT_REQUEST_VARIATION / 2 + (int)(nrand48(ws->rand48_state) % OT_CLIENT_REQUEST_VARIATION)) | ||
| 48 | 51 | ||
| 49 | /* If WANT_MODEST_FULLSCRAPES is on, ip addresses may not | 52 | /* If WANT_MODEST_FULLSCRAPES is on, ip addresses may not |
| 50 | fullscrape more frequently than this amount in seconds */ | 53 | fullscrape more frequently than this amount in seconds */ |
