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

Shut down after errors #13

Open
andreyvit opened this issue Jul 25, 2013 · 2 comments
Open

Shut down after errors #13

andreyvit opened this issue Jul 25, 2013 · 2 comments

Comments

@andreyvit
Copy link

According to the domain module docs (and common sense), in case of an unhandled exception the process should stop accepting new connections and eventually shut down.

A sane default behavior would be to stop listening on http port(s) and do a process.exit from setTimeout with a reasonable delay (30 seconds?), plus an event to add any app-specific shutdown logic.

@yalamber
Copy link

is this possible? did you find any way to do this?

@fengmk2
Copy link
Contributor

fengmk2 commented Oct 29, 2013

I have done this with "graceful" module, you can check it out.

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

No branches or pull requests

3 participants