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

Fiber.interrupt not interrupting FiberAsync.run #62

Closed
cgordon opened this issue Sep 14, 2014 · 0 comments
Closed

Fiber.interrupt not interrupting FiberAsync.run #62

cgordon opened this issue Sep 14, 2014 · 0 comments
Labels

Comments

@cgordon
Copy link

cgordon commented Sep 14, 2014

As the title suggests, calling Fiber.interrupt on a Fiber that is parked in a call to FiberServerSocketChannel.accept does not cause an InterruptedIOException to be thrown, as I would expect from reading the code. I have traced the problem into FiberAsync.run, but am not fluent enough in the semantics of park/unpark to get further. Here is a simple main method that reproduces the problem:

https://gist.github.com/cgordon/7b050a5a6820db3745b0

Here is the output of the flight recorder for a run of that method:

https://gist.github.com/cgordon/a0d80c1be504bbd71d82

Here is the gradle.build file I used:

https://gist.github.com/cgordon/1b20a67634602efd415c

@pron pron changed the title Fiber.interrupt not interrupting call to FiberServerSocketChannel.accept Fiber.interrupt not interrupting FiberAsync.run Sep 15, 2014
@pron pron added the bug label Sep 15, 2014
@pron pron closed this as completed in 00a2ca1 Sep 15, 2014
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

2 participants