-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UNIXSocket#recv_io, UNIXSocket#send_io implementation using JNR #3492
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.rb
andsend_io_spec.rb
seem 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