You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
With this change, whenever I invoke a cli command, e.g., node server.js stop, it just hangs there after executing until I hit ^C. This is less than optimal. What was the motivation for this behaviour change?
The reason will be displayed to describe this comment to others. Learn more.
I'll try reducing it into a simple test case, but it's basically a simple Express app based on rgrove's combohandler. It's quite likely a file handle or something is lingering, since it is fairly basic and doesn't really listen for any cluster events (I hacked a local copy to use cluster instead of spark2).
The reason will be displayed to describe this comment to others. Learn more.
the main problem is when you do cluster(server) you usually require() in an app with a lot of connections etc. I should have been more verbose with this commit message, I forget exactly what it was messing with but the hard exit was causing some issues
6cfd9e3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this change, whenever I invoke a cli command, e.g.,
node server.js stop
, it just hangs there after executing until I hit^C
. This is less than optimal. What was the motivation for this behaviour change?6cfd9e3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will hang if you have connections etc active in the master process, which is probably what's going on
6cfd9e3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try reducing it into a simple test case, but it's basically a simple Express app based on rgrove's combohandler. It's quite likely a file handle or something is lingering, since it is fairly basic and doesn't really listen for any cluster events (I hacked a local copy to use cluster instead of spark2).
Thanks for the swift response.
6cfd9e3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the main problem is when you do
cluster(server)
you usually require() in an app with a lot of connections etc. I should have been more verbose with this commit message, I forget exactly what it was messing with but the hard exit was causing some issues