You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we can implement this simply enough for UNIX, but the other socket types will be a bit more difficult (we don't use native calls for them and the JDK socket classes don't have "pair" capability).
MRI also supports pair only for UNIX sockets (other fails with Errno::EOPNOTSUPP), but it can be called not only using UNIXSocket.pair, but also using Socket.pair(:UNIX, :type, :protocol).
So there is only Socket.pair/Socket.socketpair methods missing.
@ojab thanks for looking into that. I also noticed that BSD socketpair(2) only supports UNIX as well. So we'll implement it to just call UNIXSocket.pair and error for other types.
leads to
on
jruby 9.0.0.0-SNAPSHOT (2.2.2) 2015-05-22 ac104e7 Java HotSpot(TM) 64-Bit Server VM 25.45-b02 on 1.8.0_45-b14 +jit [darwin-x86_64]
The text was updated successfully, but these errors were encountered: