-
Notifications
You must be signed in to change notification settings - Fork 25
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
Consider deprecating in favour of http-terminator #25
Comments
@gajus Just had a look at It may be helpful though if you could explicitly list the things that |
Compared to stoppable:
I didn't add a comparison table because some functionality is hard to compare, e.g. stoppable does not implement graceful shutdown just for ongoing requests, but it does have a timeout for all connections. It would be unfair to say that stoppable does not have timeout functionality. |
Thanks for clarifying. FWIW btw, I'm just a user of stoppable, not the author, so can't provide you with the answer you're looking for. But here's hoping that @hunterloftis will get back to you :) |
@gajus First of all, I think both are great libraries
I think one major different is stoppable tracing all requests Line 27 in c01a5e2
But in http-terminator you don't do the same thing. You use however, there is no documentation on _httpMessage. So I can't really tell which one is better on this point, but I think both library handle this one. |
The fact that stoppable has (at least today) 0 dependencies is a plus for stoppable. http-terminator is bringing in a fair few indirect dependencies that would be a bit of a liability in production. |
I have answered a variation of "how to terminate a HTTP server" many times on different Node.js support channels. Unfortunately, I couldn't recommend any of the existing libraries because they are lacking in one or another way (https://github.com/gajus/http-terminator#alternative-libraries). I have since put together a package that (I believe) is handling all the cases expected of graceful HTTP termination.
https://github.com/gajus/http-terminator
I would appreciate if you consider contributing to http-terminator and deprecating stoppable.
The text was updated successfully, but these errors were encountered: