Commit ec54d8f
committed
Fix FreeBSD 15.0+ SOCK_SEQPACKET message boundary issue
On FreeBSD 15.0+, SOCK_SEQPACKET sockets require MSG_EOR flag to mark
message boundaries. Using write() without MSG_EOR causes multiple
messages to coalesce when reader is slow, leading to frame
desynchronization and "output destination cannot be nil" errors.
This fix uses send() with MSG_EOR on FreeBSD while keeping the original
write_all() behavior on other platforms.
Fixes: containers/podman#27918
Signed-off-by: Jindrich Novy <jnovy@redhat.com>1 parent c4599eb commit ec54d8f
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
366 | 369 | | |
| 370 | + | |
367 | 371 | | |
368 | 372 | | |
369 | 373 | | |
| |||
0 commit comments