[ruby-core:70056] Re: [Ruby trunk - Bug #11364] [Open] Use smaller buffer for sendmsg

From: Eric Wong <normalperson@...>
Date: 2015-07-21 00:05:04 UTC
List: ruby-core #70056
Jeremy Evans <code@jeremyevans.net> wrote:
> Looks like my initial analysis was partially wrong.  OpenBSD's default
> buffer for SEQPACKET sockets is 4096.  However, ancdata.c needs a patch
> to handle EMSGSIZE.

This looks like a bug in OpenBSD.  I don't know in what standards an
application is expected to handle EMSGSIZE as a retryable error when
writing to a socket.

Maybe a version-guarded #ifdef for OpenBSD would be alright for now,
but I think this needs to be fixed in OpenBSD.

In This Thread