nio4r icon indicating copy to clipboard operation
nio4r copied to clipboard

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

Open HoneyryderChuck opened this issue 8 years ago • 4 comments

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.

HoneyryderChuck avatar Nov 06 '17 14:11 HoneyryderChuck

UNIX sockets and JRuby have always been a bit iffy.

@headius any thoughts here?

tarcieri avatar Nov 07 '17 01:11 tarcieri

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

ioquatix avatar Dec 11 '18 21:12 ioquatix

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.

HoneyryderChuck avatar Dec 17 '18 14:12 HoneyryderChuck

@HoneyryderChuck Can you contribute a failing spec? Thanks.

ioquatix avatar Jan 09 '19 07:01 ioquatix