Skip to content

Take care to use MSG_EOR with SOCK_SEQPACKET sockets - #151132

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
asomers:sock-seqpacket-eor
Jun 18, 2026
Merged

Take care to use MSG_EOR with SOCK_SEQPACKET sockets#151132
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
asomers:sock-seqpacket-eor

Conversation

@asomers

@asomers asomers commented Jan 14, 2026

Copy link
Copy Markdown
Contributor

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
@camelid

camelid commented Jun 12, 2026

Copy link
Copy Markdown
Member

triage: What's the status of this PR?

@asomers

asomers commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

triage: What's the status of this PR?

It's still relevant.

@camelid

camelid commented Jun 12, 2026

Copy link
Copy Markdown
Member

@the8472: Re-assigning since you have a high review load, but absolutely feel free to take assignment back if you'd like.

r? libs

@rustbot rustbot assigned jhpratt and unassigned the8472 Jun 12, 2026
@jhpratt

jhpratt commented Jun 18, 2026

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 4e6c3e9 has been approved by jhpratt

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 18, 2026
rust-bors Bot pushed a commit that referenced this pull request Jun 18, 2026
Rollup of 8 pull requests

Successful merges:

 - #158056 (Put internal lints into a single combined pass)
 - #151132 (Take care to use MSG_EOR with SOCK_SEQPACKET sockets)
 - #157644 (wasm32-wasip1-threads: Correct llvm target name)
 - #157912 (stabilize str_from_utf16_endian)
 - #158048 (Revert "add regression test for Redundant memory strores with mut parameters in by-value returns")
 - #158051 (Document `with_added_extension` edge cases)
 - #158054 (fix unresolved import suggestion before outer attributes)
 - #158062 (rustc book: Update wasm32-wasip1-threads's maintainers list)
@rust-bors
rust-bors Bot merged commit 8796487 into rust-lang:main Jun 18, 2026
11 checks passed
@rustbot rustbot added this to the 1.98.0 milestone Jun 18, 2026
rust-timer added a commit that referenced this pull request Jun 18, 2026
Rollup merge of #151132 - asomers:sock-seqpacket-eor, r=jhpratt

Take care to use MSG_EOR with SOCK_SEQPACKET sockets

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
@asomers
asomers deleted the sock-seqpacket-eor branch June 18, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

5 participants