Skip to content

Revoke private incoming admission before peer reset - #214

Closed
linroid wants to merge 1 commit into
torrent-v2-11-private-failoverfrom
torrent-v2-11-private-admission
Closed

linroid wants to merge 1 commit into
torrent-v2-11-private-failoverfrom
torrent-v2-11-private-admission

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Revoke private tracker-authorized hosts before joining and draining old peers. Incoming authorization and queue insertion now share a short mutex with revocation, ensuring an old-host enqueue cannot occur after the reset drain. Incoming admission remains nonblocking and rejects on lock contention; the engine closes rejected handles.

Stacked on #213; advances #162. The session regression fails before the fix: while an old peer is held in cancellation cleanup, another connection from that host is still accepted. It now rejects old hosts during and after reset, admits the replacement tracker host, and releases all session buffer credit on shutdown. Existing pause/resume/checkpoint behavior is also tested.

This repairs the existing v1 session's private admission path. Public v2 session registration and its corresponding discovery provenance/admission integration remain separate roadmap work.

Validation: 534 JVM and 513 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:18:09.179303Z d12db27 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 18s ⏱️ -5s
2 981 tests +3  2 981 ✅ +3  0 💤 ±0  0 ❌ ±0 
4 047 runs  +5  4 047 ✅ +5  0 💤 ±0  0 ❌ ±0 

Results for commit d12db27. ± Comparison against base commit 1d108cb.

@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-private-admission 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