Connect/Express Request Timeout Middleware
JSON →connect-timeout is a middleware for Connect and Express applications designed to terminate long-running HTTP requests after a specified duration. The current stable version is 1.9.1. It provides functionality to emit a 'timeout' event on the request object and, optionally, forward a 503 Service Unavailable error to the next middleware. While it flags timed-out requests, it's crucial to understand that it does not inherently stop the underlying server-side processing of the request; developers must explicitly check `req.timedout` to halt further execution and manage resource consumption. Its primary differentiation is its tight integration with the Connect/Express middleware pattern, allowing for flexible placement in the middleware chain, though it warns against top-level usage without precautions. Release cadence appears moderate, with dependency updates and minor fixes.
Traffic · last 30 days ↓82% vs prev 7d
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇫🇷 France