Files
Matteo Collina 472d501591 stream: keep async context of the pipeTo pump
The pipeTo() pump re-enters from the destination's ready hook, which
writableStreamUpdateBackpressure invokes synchronously, and from the
chunk steps of its read request. Both run in the async context of the
code that cleared the backpressure or enqueued the chunk, so the
source's pull() and the writes issued after a resumption observed that
context instead of the one of the pipeTo() call, as they did with the
promise-based pump. Capture the async context frame when the pipe starts
and run the pump in it.

Refs: https://github.com/nodejs/node/issues/66906
Refs: https://github.com/nodejs/node/pull/65138
Signed-off-by: Matteo Collina <hello@matteocollina.com>
PR-URL: https://github.com/nodejs/node/pull/67054
Refs: https://github.com/nodejs/node/pull/67052
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
2026-11-21 14:47:06 +01:00
..
…
…
…
…
2026-11-13 17:02:15 +01:00
2026-09-25 18:48:04 +02:00
…
…
…
2026-01-19 19:19:27 +01:00
…
2026-04-08 23:53:07 +02:00
…
2026-07-30 13:51:48 +02:00
2026-09-07 11:53:59 +02:00
2026-01-27 22:52:32 +01:00