http-shutdown icon indicating copy to clipboard operation
http-shutdown copied to clipboard

Shutdown a Nodejs HTTP server gracefully by terminating the listening socket, then destroying all keep-alive idle sockets all while allowing in-flight requests to finish.

Results 6 http-shutdown issues
Sort by recently updated
recently updated
newest added

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...

Although, I have not confirmed this with any tests, It seems to me that the shutdown method would prematurely close sockets on an http server used as the backend for...

When I process a longer running request (aboz 2 seconds). The request will be destroyed before termination. Is there any chance to have those requests processed befor the server is...

Currently, shutdown callback called almost immediately after calling `server.shutdown()` (by `process.nextTick`). It seems that more desirable behaviour would be to wait for all connections to close to give shutdown-handling code...

Hello! I'm trying to use this module with Express, but I'm getting some weird behavior with this peace of code: ```js server.on('request', function(req, res) { req.socket._isIdle = false; res.on('finish', function()...

The code looks good, but I'm curious how battle tested this is.