Eric Wong <e...@80x24.org> wrote:
>       sendmsg with MSG_EOR on a SOCK_SEQPACKET socket appears to cause the
>       receiving end to get truncated output (and MSG_TRUNC set).  I'm only
>       sending a 153-byte record, so unlikely a problem with system limits.
>       This behavior does not exhibit on FreeBSD nor Linux, and I didn't see
>       where MSG_EOR could result in a truncated message in any man pages;
>       especially when I'm using AF_UNIX SOCK_SEQPACKET.
>       Using flags=0 with sendmsg appears to work fine, so perhaps I'm
>       misunderstanding MSG_EOR entirely.  Or it's both a misunderstanding
>       on my part AND also a bug in OpenBSD.

Fwiw, I've stopped using MSG_EOR in most of my AF_UNIX
SOCK_SEQPACKET-using code (which mainly runs on Linux and
FreeBSD) and it's been working fine.

In any case, I believe truncation observed when using MSG_EOR
remains a bug in OpenBSD.

I've also tried this in NetBSD 9.3 amd64 and it's behavior
matches FreeBSD and Linux (no truncation)

Thanks.

Reply via email to