diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-07 16:54:36 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-07 16:54:36 +0100 |
| commit | 1e7248b330bde4c70528ccf91535391e19294dc3 (patch) | |
| tree | f650bc5090227578602de43b3f1ea6dfa3c8e5b5 /src/trackerlogic.h | |
| parent | cfbe53da5d9ef8dad1bb3276c0b33ec2ab6e974b (diff) | |
Add a knob to help reducing memory consumption. This time: empty torrents may expire sooner
Diffstat (limited to 'src/trackerlogic.h')
| -rw-r--r-- | src/trackerlogic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/trackerlogic.h b/src/trackerlogic.h index 6b53406..c4b7774 100644 --- a/src/trackerlogic.h +++ b/src/trackerlogic.h | |||
| @@ -44,6 +44,11 @@ typedef struct { | |||
| 44 | #define OT_TORRENT_TIMEOUT_HOURS 24 | 44 | #define OT_TORRENT_TIMEOUT_HOURS 24 |
| 45 | #define OT_TORRENT_TIMEOUT (60 * OT_TORRENT_TIMEOUT_HOURS) | 45 | #define OT_TORRENT_TIMEOUT (60 * OT_TORRENT_TIMEOUT_HOURS) |
| 46 | 46 | ||
| 47 | /* How long a torrent kept only for its download count, with no peers in either | ||
| 48 | family, is held, in minutes. Defaults to OT_TORRENT_TIMEOUT and is lowered by | ||
| 49 | tracker.empty_torrent_timeout. */ | ||
| 50 | extern ot_time g_empty_torrent_timeout; | ||
| 51 | |||
| 47 | #define OT_CLIENT_REQUEST_INTERVAL_RANDOM \ | 52 | #define OT_CLIENT_REQUEST_INTERVAL_RANDOM \ |
| 48 | (OT_CLIENT_REQUEST_INTERVAL - OT_CLIENT_REQUEST_VARIATION / 2 + (int)(nrand48(ws->rand48_state) % OT_CLIENT_REQUEST_VARIATION)) | 53 | (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 \ | 54 | #define OT_CLIENT_REJECT_INTERVAL_RANDOM \ |
