Reverse Proxy ECONNRESET on Idle Keep-Alive Socket
Backend closed an idle HTTP/1.1 connection slightly before proxy reused it.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: Reverse Proxy ECONNRESET on Idle Keep-Alive Socket
Platform: HTTP
Common Root Causes:
- Backend closed an idle HTTP/1.1 connection slightly before proxy reused it.
Interactive Diagnostic Checklist
Verified Solutions:
- Ensure backend `keepAliveTimeout` (e.g. 65s) is strictly higher than Nginx `keepalive_timeout` (60s).
Safe Diagnostic Command:
Compare Nginx keepalive_timeout vs Node server.keepAliveTimeout
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
Backend closed an idle HTTP/1.1 connection slightly before proxy reused it. Recommended diagnostic: `Compare Nginx keepalive_timeout vs Node server.keepAliveTimeout`. Remediation: Ensure backend `keepAliveTimeout` (e.g. 65s) is strictly higher than Nginx `keepalive_timeout` (60s).
Worked Examples
- Run `Compare Nginx keepalive_timeout vs Node server.keepAliveTimeout` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-http-keepalive-reset-econnreset · Independently verified: 2026-11-25