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

2 Events
WhenWhatByLicenseComment
Nov 8, 2026, 9:38:46 AM
2w ago
AnswertechtonyCC BY-SA 4.0Collect 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
CreatedantonbuildsCC BY-SA 4.0WebSocket closes after fixed idle period when routed through Nginx reverse proxy