Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor(net): adjust send* methods#770

Merged
George-Miao merged 3 commits into
compio-rs:masterfrom
Berrysoft:no-sigpipe
Mar 25, 2026
Merged

refactor(net): adjust send* methods#770
George-Miao merged 3 commits into
compio-rs:masterfrom
Berrysoft:no-sigpipe

Conversation

@Berrysoft
Copy link
Copy Markdown
Member

  • Use MSG_NOSIGNAL for all send* methods. This aligns with std.
  • Don't call send_zerocopy in <TcpStream as AsyncWrite>::write. The Linux zerocopy is not always efficient. It is recommended for >10KB buffers.
  • Add UnixStream::send_zerocopy and UdpSocket::send_zerocopy.
  • Remove flag param in send_zerocopy.

@Berrysoft Berrysoft requested a review from Copilot March 14, 2026 15:01
@Berrysoft Berrysoft self-assigned this Mar 14, 2026
@Berrysoft Berrysoft added the package: net Related to compio-net label Mar 14, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@johnnyshields
Copy link
Copy Markdown
Contributor

@Berrysoft do you mind merging this so I can do the downstream patch in H2?

@Berrysoft
Copy link
Copy Markdown
Member Author

Needs reviewing :(

Copy link
Copy Markdown
Member

@George-Miao George-Miao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@George-Miao George-Miao merged commit 8dc1a44 into compio-rs:master Mar 25, 2026
130 of 179 checks passed
@github-actions github-actions Bot mentioned this pull request Mar 24, 2026
@Berrysoft Berrysoft deleted the no-sigpipe branch March 25, 2026 02:50
This was referenced Apr 21, 2026
fantix added a commit to compio-rs/compio-ktls that referenced this pull request Apr 26, 2026
The `app-write-with-empty-ancillary` feature is no longer necessary
because compio-rs/compio#770 recovered the non-zero-copy behaviors
of `TcpStream::write` and `TcpStream::write_vectored`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: net Related to compio-net

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants