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

Hard exit in Node.js IOApp #2707

Merged
merged 1 commit into from
Dec 31, 2021

Conversation

armanbilge
Copy link
Member

@armanbilge armanbilge commented Dec 31, 2021

This fixes #2630 by enforcing a hard-exit. A graceful exit in Node.js waits for the event loop to become empty, which may not happen if there are leaked fibers.

I still think it would be good to issue a warning about leaked fibers, but this at least solves the confusing problem of the app completely hanging on termination.

@armanbilge armanbilge changed the title Hard exit on Node.js IOApp Hard exit in Node.js IOApp Dec 31, 2021
Copy link
Member

@djspiewak djspiewak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the right thing to do. At the very least it matches the JVM semantics.

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

Successfully merging this pull request may close these issues.

None yet

2 participants