Skip to content

[v6.x fix] lib: fix zlib async callback after close

A minimal change that will fix #15625 (closed). There are no test cases for this, as I have not been able to find a way to trigger this without actually running a busy system in production. The fix is also minimal because I have been able to verify in production that this fixes the issue, by using code like stream._hadError = true; stream.close(). The fix is for 6.x only, as the code has been heavily rewritten in 8.x and does not contain this bug anymore.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

zlib

Merge request reports

Loading