Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.
Description
- Version: v14.5.0
- Platform: Ubuntu/Linux
- Subsystem: stream
letstream=require('stream');letsrc=newstream.Readable({read(){console.log('push')this.push(Buffer.alloc(20000));}});letdst=newstream.Transform({transform(chunk,output,fn){this.push(null);fn();}});src.pipe(dst);functionparser_end(error){console.log('parser ended',error);dst.removeAllListeners();}dst.once('data',data=>console.log(data));dst.once('end',()=>parser_end());dst.on('error',error=>parser_end(error));- Expected behavior (tested on node v10, 12):
endevent is emitted bydst, transform stops, source pauses. - Actual behavior (tested on node v14):
endevent does not get emitted bydst, transform runs indefinitely.
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.