Closed
Description
- Version: >= 13.10.0
- Platform: all
- Subsystem: stream
This bug breaks hundreds of packages, including Got, Yarn and Renovate.
What steps will reproduce the bug?
const {PassThrough, pipeline} = require('stream');
const https = require('https');
const body = new PassThrough();
const request = https.request('https://example.com');
request.once('abort', () => {
console.log('The request has been aborted');
});
pipeline(
body,
request,
error => {
console.log(`Pipeline errored: ${!!error}`);
}
);
body.end();
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior?
Pipeline errored: false
What do you see instead?
Pipeline errored: false
+The request has been aborted
Additional information
This is the culprit: https://github.com/nodejs/node/pull/31940/files#diff-eefad5e8051f1634964a3847b691ff84R36
->
/cc @ronag
Metadata
Metadata
Assignees
Labels
No labels