-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.
Description
- Version: >= 4
- Platform: Linux
- Subsystem: stream
Run the following test case, that produces an infinite stream that is piped to a simple writable stream. If you do a read in between when the destination's buffer is full, the pipe breaks.
var stream = require('stream')
var rs = stream.Readable({
objectMode: true,
read: () => rs.push({})
})
setImmediate(function () {
rs.read()
})
var ws = stream.Writable({
objectMode: true,
write: (data, enc, cb) => {
console.log(data)
setTimeout(cb, 10)
}
})
rs.pipe(ws)
Metadata
Metadata
Assignees
Labels
streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.