fix(node): handle error and abort propagation for piped Node.js streams · h3js/srvx@77f879b · GitHub
Skip to content

Commit 77f879b

Browse files
committed
fix(node): handle error and abort propagation for piped Node.js streams
use `node:stream/promises` `pipeline()` instead of raw `.pipe()` to properly handle bidirectional error propagation for Node.js Readable response streams.
1 parent 6cec129 commit 77f879b

2 files changed

Lines changed: 165 additions & 2 deletions

File tree

‎src/adapters/_node/send.ts‎

Lines changed: 13 additions & 2 deletions

‎test/node-streams.test.ts‎

Lines changed: 152 additions & 0 deletions

0 commit comments

Comments
 (0)