Skip to content

stream: finished should complete with read-only Duplex

If passed a Duplex where readable or writable has been explicitly disabled then don't assume 'close' will be emitted.

Fixes: https://github.com/nodejs/node/issues/32965

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading