Open
Description
Details:
- Introduce middleware to automatically timeout requests that exceed a predefined duration (e.g., 30 seconds). This prevents potential resource exhaustion and improves the responsiveness of the server.
- Provide informative error messages for timed-out requests and log them for monitoring purposes.
Action Items:
- Use middleware like
connect-timeout
or implement custom logic to detect and terminate long-running requests. - Ensure the timeout duration is configurable via environment variables.
- Write tests to verify timeouts for requests exceeding the limit.
Metadata
Metadata
Assignees
Labels
No labels