-
Notifications
You must be signed in to change notification settings - Fork 76
Can't interrupt blocking accept #21
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
Comments
AFAIK, This is the documented behaviour of java.nio.channels.spi.AbstractInterruptibleChannel. |
@felfert but begin/end are protected methods, so I can't call them directly. Surely it is the JNR implementation of UnixServerSocketChannel#accept that should be calling them? |
Specifically, shouldn't this line be wrapped in begin/end pairs? |
@gregw I think you're right. Can you help us patch this? |
Fix this for 0.14. |
I think the way to do |
Fixed in #65 |
A blocking call to accept cannot be interrupted, not even if the channel is closed. This is demonstrated by the following code:
The text was updated successfully, but these errors were encountered: