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'm writing a ruby client for net-snmp using ffi and making it compatible with celluloid-io. For MRI, it has been working alright. I'm having issues with jruby 9k, though.
All the examples have been done using 9.1.1.0 (latest release). The following example works:
# example script of creating io object from fd and passing it to the selectorio=IO.for_fd2# stderrrIO.select[],[io]#=> [], [io]selector=NIO::Selector.newselector.register(io,:w)
Problem is when I'm acting on a file descriptor coming from the snmp session structure. As it's all done in C, I'm "deep-fetching" from the structure and initializing an IO object, which would then be passed to the reactor.
...
require'nio'io=IO.for_fd(fd_from_the_snmp_structure)# this works, btwIO.select[],[io]#=> [], [io]selector=NIO::Selector.newselector.register(io,:w)#=>ArgumentError: mode not supportedforthisobject: r
registeratorg/nio4r/Nio4r.java:172
as previously stated, it works under MRI. It might be a bug in jruby, it's a bit hard for me to figure out, problem seems however to be in the symbolToInterestOps in the java extension(?), possibly, maybe. Is the first such report, or do I have to dig a bit deeper?
The text was updated successfully, but these errors were encountered:
@TiagoCardoso1983 that indicates the underlying NIO channel does not support being monitored for reading. I'd suggest opening a JRuby issue and we can discuss there.
I'm writing a ruby client for net-snmp using ffi and making it compatible with celluloid-io. For MRI, it has been working alright. I'm having issues with jruby 9k, though.
All the examples have been done using 9.1.1.0 (latest release). The following example works:
Problem is when I'm acting on a file descriptor coming from the snmp session structure. As it's all done in C, I'm "deep-fetching" from the structure and initializing an IO object, which would then be passed to the reactor.
as previously stated, it works under MRI. It might be a bug in jruby, it's a bit hard for me to figure out, problem seems however to be in the
symbolToInterestOps
in the java extension(?), possibly, maybe. Is the first such report, or do I have to dig a bit deeper?The text was updated successfully, but these errors were encountered: