Skip to content

Throttle tracker reannounce and back off failed polls - #212

Closed
linroid wants to merge 1 commit into
torrent-v2-11-tracker-scrapefrom
torrent-v2-11-tracker-reannounce
Closed

linroid wants to merge 1 commit into
torrent-v2-11-tracker-scrapefrom
torrent-v2-11-tracker-reannounce

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Retains the tracker minimum interval separately from regular polling so serialized discovery can accept a rate-limited manual reannounce. Manual requests respect the tracker minimum and a 60-second local floor; automatic polling and lifecycle events retain separate timing.

Failed tracker polls now back off from 15 seconds to a 15-minute cap and reset after success. Cancellation propagates without creating backoff; stop can still notify a tracker during backoff. The existing v1 polling loop also benefits from this protection.

Stacked on #211; advances #162. Tests cover minimum/local-floor timing, short automatic intervals, conservative UDP timing, capped exponential retries, success reset, completion/stop, and cancellation. Public command wiring, per-tracker diagnostics/backoff, tracker editing, and network-policy admission remain separate work.

Validation at aeaf1849236bb7807b0a3717ff9a1103ec8ca54f: 530 JVM and 509 executed iOS simulator tests, zero failures/errors/skips; native-runtime guard and both pinned v1 conformance scenarios passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T21:05:09.999478Z aeaf184 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

  712 files  ± 0    712 suites  ±0   4m 29s ⏱️ +24s
2 969 tests +21  2 969 ✅ +21  0 💤 ±0  0 ❌ ±0 
4 027 runs  +35  4 027 ✅ +35  0 💤 ±0  0 ❌ ±0 

Results for commit aeaf184. ± Comparison against base commit 2000bd7.

@linroid

linroid commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #237 (Tracker lifecycle, editing and discovery privacy) in the consolidated eight-PR stack for #162.

The replacement preserves this PR's code and subsequent fixes; its description links the original head and review discussions. The only additional consolidation fix is the CI-discovered listener cancellation regression, documented on the replacement. All eight replacements have passed their required CI checks.

Closing without merging. This branch and its discussions remain available for reference. Review index: #162 (comment)

@linroid linroid closed this Sep 20, 2026
@linroid
linroid deleted the torrent-v2-11-tracker-reannounce branch September 20, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant