Skip to content

refactor(net/unix): improve send/recv logic and add wake_peer_readable helper#1816

Merged
fslongjin merged 2 commits intoDragonOS-Community:masterfrom
fslongjin:fix-unix-stream-send-recv-logic
Mar 13, 2026
Merged

refactor(net/unix): improve send/recv logic and add wake_peer_readable helper#1816
fslongjin merged 2 commits intoDragonOS-Community:masterfrom
fslongjin:fix-unix-stream-send-recv-logic

Conversation

@fslongjin
Copy link
Member

  • Refactor send logic to handle SOCK_SEQPACKET all-or-nothing and SOCK_STREAM partial writes
  • Add send_closed method to check if send side is closed
  • Extract peer wakeup logic into wake_peer_readable helper method
  • Improve recv logic to support partial reads and WAITALL flag
  • Update gVisor test whitelist to include socket_stream_blocking_local_test

…e helper

- Refactor send logic to handle SOCK_SEQPACKET all-or-nothing and SOCK_STREAM
partial writes
- Add send_closed method to check if send side is closed
- Extract peer wakeup logic into wake_peer_readable helper method
- Improve recv logic to support partial reads and WAITALL flag
- Update gVisor test whitelist to include socket_stream_blocking_local_test

Signed-off-by: longjin <longjin@DragonOS.org>
@fslongjin
Copy link
Member Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

We were unable to download your code in a timely manner.
ℹ️ 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".

@fslongjin fslongjin merged commit a836936 into DragonOS-Community:master Mar 13, 2026
14 of 15 checks passed
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