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) |
Peer socket writes need an independent owner so a stalled connection cannot stall session scheduling.
PeerV2DownloadActornow owns the negotiated transport, block exchange, and joined inbox reader behind admitted, bounded command/event queues.Request acknowledgements enter the event queue before responses. Commands and event backpressure respect the earliest block/hash deadline; connection failure closes only that peer's event stream. Queued and canceled-send events release their buffers, while delivered events retain consumer ownership after actor shutdown. Cleanup also handles cancellation before the child starts.
Stacked on #203; part of #162. Shared session event multiplexing, complete hash serving/seeding, and production runtime registration remain outstanding.
Validation at
a19282edbe6e24ed806a2291dc1542703d661b9f: 478 JVM and 457 executed iOS simulator tests, zero failures/errors/skips. Both pinned v1 conformance scenarios and the native dependency guard passed. New tests cover immediate-response ordering, a stalled peer alongside a productive peer, bounded event backpressure, delivered/undelivered ownership, cancellation before startup, and a hash write constrained by an earlier block deadline.