Skip to content

[v12.x backport] stream: destroy wrapped streams on error

Stream should be destroyed and update state accordingly when the wrapped stream emits error.

Does some additional cleanup with future TODOs that might be worth looking into.

PR-URL: https://github.com/nodejs/node/pull/34102 Reviewed-By: Matteo Collina matteo.collina@gmail.com Reviewed-By: Luigi Pinca luigipinca@gmail.com Reviewed-By: Anna Henningsen anna@addaleax.net

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