Stoppable HTTP/HTTPS Server Shutdown
JSON →Stoppable is a Node.js library that decorates standard `http.Server` and `https.Server` instances with a `stop()` method, addressing a long-standing behavior of Node.js's native `server.close()` that often leaves existing connections open indefinitely. This library ensures a graceful shutdown by stopping new connections, allowing in-flight requests to complete, and then closing existing idle connections, optionally with a grace period for force-closing. The current stable version is 1.1.0, last updated in 2017. While widely adopted and stable for its intended purpose, it is no longer actively maintained. Its key differentiator is providing a reliable, explicit mechanism for graceful server shutdown that was historically missing from Node.js core, with minimal performance overhead. Alternatives like `http-terminator` offer similar functionality with different design choices, often avoiding monkey-patching.
Traffic · last 30 days ↓100% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany