Skip to content

stream: pipeline wait for close before calling the callback

// Use the pipeline API to easily pipe a series of streams // together and get notified when the pipeline is fully done.

stream.pipeline() closes all the streams when an error is raised

pipeline doc: here

The pipeline should wait for close event to finish before calling the callback as that should be the proper "fully done" state.

The finishCount should not below 0 when calling finishImpl function (should not be negative).

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

Merge request reports

Loading