[ruby-core:69136] Re: [Ruby trunk - Feature #11139] [PATCH] socket: accept_nonblock supports "nonblock: false" kwarg

From: Eric Wong <normalperson@...>
Date: 2015-05-12 00:58:38 UTC
List: ruby-core #69136
djberg96@gmail.com wrote:
> How about just :block ?
> 
>     a.accept(block: false)
>     a.accept_nonblock(block: true)

I don't think that helps convey it affects the newly-accepted socket,
not the socket performing the accept.  Perhaps :sock_nonblock is better,
at least it maps to SOCK_NONBLOCK in Linux.

In This Thread

Prev Next