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

Infinite NIO selection #42

Open
jangbora opened this issue Apr 20, 2017 · 0 comments
Open

Infinite NIO selection #42

jangbora opened this issue Apr 20, 2017 · 0 comments

Comments

@jangbora
Copy link

I tried example server on Ubuntu 14.04(Release env) and MacOS(Develop env).

On Mac, NIO selection is wait for asleep until message received.
https://github.com/jnr/jnr-unixsocket/blob/master/src/test/java/jnr/unixsocket/example/UnixServer.java#L47

But on Ubuntu, NIO selection is not blocked and loop infinitely.
https://github.com/jnr/jnr-unixsocket/blob/master/src/test/java/jnr/unixsocket/example/UnixServer.java#L47-L67

In my guess, Is the reason that Ubuntu is not BSD?
https://github.com/jnr/jnr-enxio/blob/master/src/main/java/jnr/enxio/channels/NativeSelectorProvider.java#L55-L57

Please check whether I did mis-configured or not. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant