Skip to content

Hard exit in Node.js IOApp#2707

Merged
djspiewak merged 1 commit intotypelevel:series/3.3.xfrom
armanbilge:topic/nodejs-hard-exit
Dec 31, 2021
Merged

Hard exit in Node.js IOApp#2707
djspiewak merged 1 commit intotypelevel:series/3.3.xfrom
armanbilge:topic/nodejs-hard-exit

Conversation

@armanbilge
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants