{"library":"connect-timeout","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.9.1","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install connect-timeout","imports":["import timeout from 'connect-timeout'","const timeout = require('connect-timeout')","app.use(timeout('5s'))"]},{"cmd":"yarn add connect-timeout","imports":[]},{"cmd":"pnpm add connect-timeout","imports":[]}],"homepage":null,"github":"https://github.com/expressjs/timeout","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/connect-timeout","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/connect-timeout/compatibility"}}