Notes on TCP Keepalive & Timeouts
When running edge services behind proxies, default TCP timeout values can often lead to silent connection drops. Setting keepalive_timeout explicitly in your web server helps prevent half-open sockets under unstable network conditions.
A simple rule of thumb for idle connections is to match the client retransmission window while keeping resource usage low on the server host.