Commit 6fce1a31 authored by Matteo Collina's avatar Matteo Collina Committed by Jeremiah Senkpiel
Browse files

zlib: check if the stream is destroyed before push

If the stream is destroyed while the transform is still being
applied, push() should not be called, and the internal state
should be cleared.

Refs: https://github.com/koajs/compress/issues/60
PR-URL: https://github.com/nodejs/node/pull/14330
Backport-PR-URL: https://github.com/nodejs/node/pull/14396


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>

 Conflicts:
	lib/zlib.js
parent 7c3fed56
Supports Markdown
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