socketry / nio4r

Cross-platform asynchronous I/O primitives for scalable network clients and servers.
Other
964 stars 85 forks source link

Getting "mode not supported for this object: rw" for UNIXServer instances #169

Open HoneyryderChuck opened 6 years ago

HoneyryderChuck commented 6 years ago

I can't seem to monitor unix servers in jruby (using JRuby 9.1.13.0 btw). I'm getting the following error:

mode not supported for this object: rw
org/nio4r/Selector.java:107:in `register'
...

It might be that nio4r just doesn't work with unix sockets in jruby, but I still had to ask, as they're selectable in JRuby using IO.select.

tarcieri commented 6 years ago

UNIX sockets and JRuby have always been a bit iffy.

@headius any thoughts here?

ioquatix commented 5 years ago

@HoneyryderChuck do you mind submitting a PR with a failing test case?

HoneyryderChuck commented 5 years ago

I have discovered this a long time ago, and can't remember specifics. But I guess that you can just try instantiating a UNIXServer and settings :rw on it, and see if it works.

ioquatix commented 5 years ago

@HoneyryderChuck Can you contribute a failing spec? Thanks.