node/lib/internal/streams
jakecastelli 8e5d88b641
stream: pipeline wait for close before calling the callback
The pipeline should wait for close event to finish before calling
the callback.

The `finishCount` should not below 0 when calling finish function.

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

Co-authored-by: wh0 <wh0@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/53462
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
2024-06-27 11:29:35 +00:00
..
add-abort-signal.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
compose.js stream: make sure _destroy is called 2024-06-10 14:56:04 +00:00
destroy.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
duplex.js stream: make Duplex inherit destroy from Writable 2024-04-05 18:34:33 +00:00
duplexify.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
end-of-stream.js stream: callback should be called when pendingcb is 0 2024-06-15 07:30:11 +00:00
from.js stream: improve from perf 2023-10-26 08:42:58 +00:00
lazy_transform.js crypto: do not overwrite _writableState.defaultEncoding 2023-08-27 14:12:29 +00:00
legacy.js stream: fix eventNames() to not return not defined events 2024-02-27 23:56:43 +00:00
operators.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
passthrough.js lib: revert primordials in a hot path 2021-04-19 10:23:01 +02:00
pipeline.js stream: pipeline wait for close before calling the callback 2024-06-27 11:29:35 +00:00
readable.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
state.js stream: bump default highWaterMark 2024-03-13 19:02:14 +00:00
transform.js stream: remove no longer relevant comment 2023-10-29 05:00:19 +00:00
utils.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
writable.js stream: support dispose in writable 2024-06-15 23:41:59 +00:00