Skip to content

stream: don't deadlock duplexpair

If nothing is buffered then _read will not be called and the callback will not invoked, effectivly deadlocking.

Fixes: https://github.com/nodejs/node/issues/29758 Refs: https://github.com/nodejs/node/pull/29649

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