Skip to content
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

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

Open
HoneyryderChuck opened this issue Nov 6, 2017 · 4 comments
Assignees
Labels

Comments

@HoneyryderChuck
Copy link
Contributor

HoneyryderChuck commented Nov 6, 2017

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
Copy link
Contributor

tarcieri commented Nov 7, 2017

UNIX sockets and JRuby have always been a bit iffy.

@headius any thoughts here?

@tarcieri tarcieri added the JRuby label Nov 7, 2017
@ioquatix
Copy link
Member

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

@HoneyryderChuck
Copy link
Contributor Author

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
Copy link
Member

ioquatix commented Jan 9, 2019

@HoneyryderChuck Can you contribute a failing spec? Thanks.

@ioquatix ioquatix self-assigned this Jan 9, 2019
@ioquatix ioquatix changed the title (JRUBY) Getting "mode not supported for this object: rw" for UNIXServer instances Getting "mode not supported for this object: rw" for UNIXServer instances Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants