nginx reverse proxy ↔ upstream application servers: which side's idle timeout governs safe connection reuse?
Goal Achieve reliable upstream keepalive connection reuse without intermittent failures caused by half-closed connections. Constraints and uncertainty The upstream keepalive pool is configured per worker process via keepalive N; , yielding a total capacity of N × worker_processes . Pool reuse requires proxy_http_version 1.1; and clearing the Connection heade