UNIXSocket#recv_io, UNIXSocket#send_io implementation using JNR#3492
UNIXSocket#recv_io, UNIXSocket#send_io implementation using JNR#3492headius merged 2 commits intojruby:masterfrom
Conversation
bb4e8f0 to
eb646c3
Compare
eb646c3 to
0b66018
Compare
|
sorry I can not decide whether its correct without any tests, try rebasing off a green build and un-exclude some of the MRI tests or add new ones |
|
@kares @headius the MRI tests are checking Please advise? |
0b66018 to
70a0f97
Compare
|
Also the failure in the tests above can't be my fault... |
|
Sorry for the delay on this, @mrbrdo...travel and holidays tied me up I guess. We'll get this merged right away. |
UNIXSocket#recv_io, UNIXSocket#send_io implementation using JNR
recv_io_spec.rbandsend_io_spec.rbseem to now be passing. Also did a check with a script and seems to be working properly. Thorough review would be welcome, as this is my first JRuby PR.Based on MRI code https://github.com/ruby/ruby/blob/trunk/ext/socket/unixsocket.c#L206
And on the test from
jnr-posix: https://github.com/jnr/jnr-posix/blob/master/src/test/java/jnr/posix/IOTest.java#L163I did skip this part: https://github.com/ruby/ruby/blob/af68619a6c0de0d4f08d092d65143abcf2cedce3/ext/socket/unixsocket.c#L355 (L355-L404)
I'm not sure if this is even relevant to JRuby nor do I completely understand what it is doing.
Cheers