Preparing for system design interviews?  Try bugzed.com →

Stoppable HTTP/HTTPS Server Shutdown

JSON →
library 1.1.0 ·javascript maintenance
verified Jun 17, 2026

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.

total hits 5
actors 2 distinct systems
last hit 20d ago AhrefsBot
Script
1
Humans
1

top countries 🇨🇦 Canada · 🇨🇳 China · 🇩🇪 Germany · 🇫🇷 France