-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream: make sure 'readable' is emitted before ending the stream #26059
Conversation
test/parallel/test-stream-readable-emit-readable-short-stream.js
Outdated
Show resolved
Hide resolved
const t = new stream.Transform({ | ||
transform: common.mustCall(function(chunk, encoding, callback) { | ||
this.push(chunk); | ||
return callback(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit that can be ignored, can we remove the return
statement?
dec410a
to
833cb28
Compare
Still LGTM |
833cb28
to
c393c44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I mean, it saves a common.mustNotCall()
call :)
Co-Authored-By: mcollina <matteo.collina@gmail.com>
Co-Authored-By: mcollina <matteo.collina@gmail.com>
I understand what you mean now! |
Landed in e95e7f9 |
Fixes: nodejs#25810 PR-URL: nodejs#26059 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
In nodejs#26059, we introduced a bug that caused 'readable' to be nextTicked on EOF of a ReadableStream. This breaks the dicer module on CITGM. That change was partially reverted to still fix the bug in nodejs#25810 and not break dicer. See: nodejs#26059 Fixes: nodejs#25810
I marked this as do not land on all release lines and I'll back this out again from the release proposal for v11.12.0. |
In #26059, we introduced a bug that caused 'readable' to be nextTicked on EOF of a ReadableStream. This breaks the dicer module on CITGM. That change was partially reverted to still fix the bug in #25810 and not break dicer. See: #26059 Fixes: #25810 PR-URL: #26643 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Fixes: nodejs#25810 PR-URL: nodejs#26059 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
In nodejs#26059, we introduced a bug that caused 'readable' to be nextTicked on EOF of a ReadableStream. This breaks the dicer module on CITGM. That change was partially reverted to still fix the bug in nodejs#25810 and not break dicer. See: nodejs#26059 Fixes: nodejs#25810 PR-URL: nodejs#26643 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
In #26059, we introduced a bug that caused 'readable' to be nextTicked on EOF of a ReadableStream. This breaks the dicer module on CITGM. That change was partially reverted to still fix the bug in #25810 and not break dicer. See: #26059 Fixes: #25810 PR-URL: #26643 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This change is born out of #25810, as I explored how to fix that difference.
This change could be considered semver-major or a bug fix. We need also to check some of the benchmarks if they are impacted before landing.
Fixes #25810
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes