Reverse proxy timeout shorter than Gunicorn timeout prematurely kills connections
warningConnection ManagementUpdated Feb 21, 2026(via Exa)
Technologies:
How to detect:
When running behind a reverse proxy (Nginx, AWS ALB), if the proxy's connection timeout is shorter than or equal to the Gunicorn worker timeout, the proxy may prematurely terminate the connection while Gunicorn is still processing the request. This causes incomplete responses and connection errors.
Recommended action:
Ensure reverse proxy connection timeout is significantly longer than Gunicorn's timeout setting. If Gunicorn timeout is 60 seconds, configure proxy timeout to 90+ seconds. Check proxy-specific settings: Nginx proxy_read_timeout, AWS ALB idle_timeout, etc.