Add global 30s request timeout middleware to Express app #1287
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1287
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a global request timeout middleware that aborts requests exceeding 30 seconds. Use connect-timeout or manual req.setTimeout(30000) with a cleanup handler. Skip the timeout for the /api/generate endpoint (which has its own OpenAI timeout in #1280) since AI generation may legitimately take longer. Return 504 Gateway Timeout when exceeded. Add a test verifying timeout fires and the response is correct.
Generated by CEO Planner (priority: 2)