Repository navigation
Conversation
Admit established writes under the socket locks and hand accepted bytes to the existing namespace worker. This avoids global polling and socket notification scans on the ordinary write path. Keep protocol assistance on the backpressure path, including a recheck before a nonblocking send reports EAGAIN. Give already queued data a chance to reach output before an established close purges the send queue and emits a reset. Bound this work by the existing poll budget and the closing socket's admission progress. Stop when the peer window closes or output no longer advances. Cover both zero linger and unread data at close with a loopback regression that also verifies the resulting ECONNRESET. Related to DragonOS-Community#2324. Signed-off-by: longjin <longjin@dragonos.org>
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a5fdc61a87
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A successful corked write can leave bytes outside the smoltcp send queue when the queue fills. Graceful close previously queued FIN and unbound the socket immediately, so the peer could see EOF before it received those bytes. Serialize cork enqueue and consumption with close. Transfer the remaining cork buffer to the existing deferred close entry and let it queue the tail as ACKs free transport space. Queue FIN only once the tail is in the transport queue. Abortive close and timeout still discard the tail. Keep poll publication outside the send locks and retain the publish-only path for successful established writes. Add regression coverage for both a short corked write and a backpressured send before plain close. Signed-off-by: longjin <longjin@dragonos.org>
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Established TCP writes queued data only after a synchronous namespace poll batch. Under contention, this delayed the first payload even when the connection had send-buffer space.
Validation
An exploratory multi-segment abort comparison still saw a 6 KiB zero-linger short delivery in 2 of 160 trials. The baseline comparison saw 80 of 160 short deliveries. Repeated 8 KiB trials also showed timing-dependent truncation. The residual multi-segment behavior and the precise cause of the historical CI event remain open.
Related to #2324, tracking item 2324-53.