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

From: Jeremy Evans <code@...>
Date: 2015-07-21 02:21:40 UTC
List: ruby-core #70057
On 07/21 12:05, Eric Wong wrote:
> 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.

Thanks for the heads up.  The network stack is not my area of expertise,
but I'll talk with the other OpenBSD developers and see if this should
be fixed in the kernel.

Thanks,
Jeremy

In This Thread