Sunday 28 April 2019

How does Node.js exit if it receives a SIGTERM and sockets are open?

As I understand it, Node waits for the event loop to empty (no more async code running) before it exits.But what if you have a connection to Mongo DB for example?Does Node just ignore this connection and exit anyway? What happens if you can't close it programatically because the async operations depend on it?

Submitted April 28, 2019 at 07:31PM by longyearbyen2

No comments:

Post a Comment