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 #236 (V2 scheduling and download execution) 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) |
Outgoing v2 peers now have an admitted setup and ownership-transfer path. The connector validates the layout's full v2 info hash, reserves packed availability before opening a socket, negotiates v2 (including hybrid upgrade), and closes unsuccessful connections. Handshakes can use an independent budget under payload saturation.
A successful pool attach transfers socket/pipeline/availability ownership. Full-pool rejection leaves the handle caller-owned and retryable; closing a transferred handle cannot close an active peer. Availability credit remains held until joined retirement or shutdown, and closed/transferred handles drop retained protocol ownership references. Existing real TCP session tests now use this path.
Stacked on #207; part of #162. Metadata/layout admission, global network policy/socket limits, discovery, and public engine/session registration remain outstanding caller integration work.
Validation at
cd6bbafa4d12dc4518e8252a8aac99c8490f5261: 500 JVM and 479 executed iOS simulator tests, zero failures/errors/skips; both pinned v1 conformance scenarios and native dependency guard passed. Tests cover no-socket admission/layout rejection, connect and handshake failures, cancellation at connect return, independent handshake credit, joined ownership retirement, rejected-handle cleanup, and pure-v2/hybrid TCP downloads on both platforms.