Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Superseded by #235 (V2 handshake, hash exchange and bounded transport) 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) |
Adds bounded block-reject messages and a v2 peer-state mode where choke/cancel does not silently discard the obligation to receive a response. Canceled requests retain pipeline slots until their matching piece or rejection; canceled payload is discarded, mismatched rejections cannot release another request, and unsolicited/duplicate v2 pieces fail. Legacy state behavior is preserved.
Stacked on #191; advances step 08 of #162. The v2 payload actor must select the new mode, send the required cancellation/rejection frames and enforce request deadlines. The complete actor and optional Fast Extension messages remain pending.
Validation: all 425 JVM torrent tests and all 404 iOS simulator torrent tests execute and pass with zero failures/errors/skips. Five new tests cover choke/cancel response ownership, pipeline capacity, mismatched/duplicate responses, exact reject wire fields and legacy behavior. Both pinned-client v1 conformance scenarios and the native-runtime guard pass.