From: Eric Wong Date: 2017-04-07T00:35:15+00:00 Subject: [ruby-core:80598] Re: [Ruby trunk Bug#13407] We have recv_nonblock but not send_nonblock... can we add it? samuel@oriontransfer.org wrote: > I've been playing around with sendmsg_nonblock, but I can't > see how to make a wrapper around it with the equivalent API to > send. It seems like it should be possible, but it always > requires ancillary data, can't provide nil? Huh? The following works for me: require 'socket' a, b = UNIXSocket.pair b.sendmsg_nonblock("HI", exception: false) p a.recv(2) # prints "HI" Unsubscribe: