This pull request implements a request timeout layer in the backend to prevent requests from hanging indefinitely, improving performance and reliability.
backend/Cargo.toml: Added thetimeoutfeature to thetower-httpdependency.backend/src/main.rs:- Configured a new
TimeoutLayerin the Axum application. - Added support for a
REQUEST_TIMEOUT_SECONDSenvironment variable (defaults to 30 seconds). - Added logging to confirm the timeout configuration on startup.
- Configured a new
- Verified implementation against Axum/Tower best practices.
- Confirmed that the default and environment-based timeouts are correctly configured in the router logic.
Closes #816