Unverified Commit 9d2d2421 authored by Benjamin Woodruff's avatar Benjamin Woodruff Committed by GitHub

Revert "Fix/zlib mem node" (#89322)

Reverts vercel/next.js#89099

Apparently this did not solve the user's memory leak issue:
https://github.com/vercel/next.js/issues/89091#issuecomment-3826050800
parent ef6ac79d
......@@ -262,12 +262,6 @@ export async function initialize(opts: {
if (compress) {
// @ts-expect-error not express req/res
compress(req, res, () => {})
// Only on client abort: destroy response so compression streams are cleaned up
req.once('aborted', () => {
if (res.destroyed || res.writableFinished) return
res.destroy()
})
}
req.on('error', (_err) => {
// TODO: log socket errors?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment