ACTIVITY
Timeline
Timeline for the post: WebSocket closes after fixed idle period when routed through Nginx reverse proxy
Currently licensed under: CC BY-SA 4.0
| When | What | By | License | Comment |
|---|---|---|---|---|
Nov 8, 2026, 9:38:46 AM 2w ago | Answer | techtony | CC BY-SA 4.0 | Collect packet traces at the proxy to see which box sends the FIN/RST at the disconnect time. Run tcpdump on the Nginx host for the socket 30s before and after the drop; if Nginx initiates close, raising proxy_read_timeout and keepalive_timeout may help. If the FIN originates upstream (load balancer/NAT), implement 20–30s application-level ping frames from server or client to keep the flow alive and ask infra to raise idle timeouts. Verify fixes by reproducing with and without pings and comparing tcpdump traces and timestamps. |
Nov 8, 2026, 9:38:46 AM 2w ago | Created | antonbuilds | CC BY-SA 4.0 | WebSocket closes after fixed idle period when routed through Nginx reverse proxy |