Demo app: https://gist.github.com/Olegas/c2e5550911cbe8b96dae
Steps to reproduce
- Start server
- Connect to it via e.g. telnet
telnet localhost 8080
- Wait a few seconds for lines
Disconnecting worker and Cluster: worker is disconnected to appear
- Process is not terminated because client connection is still alive
- Close client connection
- App terminates
Expected behavior:
- I don't expect
Cluster: worker is disconnected message until all connections is closed (https://iojs.org/api/cluster.html#cluster_worker_disconnect "... wait for the 'close' event on those servers ... ")
- I expecting to see
Server is closed message in the log (from line 32)