]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
ipc: more error-checking for sendmsg(..., MSG_EOR) master
authorEric Wong <e@80x24.org>
Mon, 27 Jul 2026 12:30:09 +0000 (12:30 +0000)
committerEric Wong <e@80x24.org>
Fri, 31 Jul 2026 22:33:06 +0000 (22:33 +0000)
commit72bf758b83cfd6dda896a8b179d3d15613160570
tree59f4c17398ff05df4f0b426db10bbd68c176c6f2
parent010fdcc6e4244da81129f873793f208e3172d4b0
ipc: more error-checking for sendmsg(..., MSG_EOR)

Introduce `sendmsg_eor' for error checking to ensure we don't hit
short writes when writing to SOCK_SEQPACKET sockets.  Reducing
imports of MSG_EOR will also make it easier for us to drop it in
the future if certain OSes end up being too buggy with it (as was
the case with OpenBSD 7.3).  It'll also make it easier to switch
to SOCK_DGRAM in the future if necessary, since Unix datagram
sockets seem reliable in practice.
lib/PublicInbox/IPC.pm
lib/PublicInbox/LEI.pm
lib/PublicInbox/WQBlocked.pm
lib/PublicInbox/XapClient.pm
t/lei-daemon.t
t/xap_helper.t