Skip to content

Take care to use MSG_EOR with SOCK_SEQPACKET sockets#151132

Open
asomers wants to merge 1 commit intorust-lang:mainfrom
asomers:sock-seqpacket-eor
Open

Take care to use MSG_EOR with SOCK_SEQPACKET sockets#151132
asomers wants to merge 1 commit intorust-lang:mainfrom
asomers:sock-seqpacket-eor

Conversation

@asomers
Copy link
Copy Markdown
Contributor

@asomers asomers commented Jan 14, 2026

The current Linux driver treats every sendmsg call as a separate record. That is, it behaves as though MSG_EOR is always set. But that might not be true forever. And the current FreeBSD driver does not do that, so setting MSG_EOR is important for portability.

r? @the8472

The current Linux driver treats every sendmsg call as a separate record.
That is, it behaves as though MSG_EOR is always set.  But that might not
be true forever.  And the current FreeBSD driver does _not_ do that, so
setting MSG_EOR is important for portability.
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants