-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Async iterator does not work with Duplex streams #33130
Comments
Please note that it works as expected on Node.js v13.13.0. |
I'm on it. |
ronag
added a commit
to nxtedition/node
that referenced
this issue
Apr 28, 2020
finished would incorrectly believe that a Duplex is already closed if either the readable or writable side has completed. Fixes: nodejs#33130
targos
pushed a commit
that referenced
this issue
May 4, 2020
finished would incorrectly believe that a Duplex is already closed if either the readable or writable side has completed. Fixes: #33130 PR-URL: #33133 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Linux solus 5.5.11-151.current #1 SMP PREEMPT Tue Mar 24 18:06:46 UTC 2020 x86_64 GNU/Linux
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior?
What do you see instead?
Additional information
Async iterator utilizes the
end-of-stream
module. The culprit is this:node/lib/internal/streams/end-of-stream.js
Line 152 in f64c640
wState.finished
istrue
, therefore the callback is called even though it should not.Original Got issue: sindresorhus/got#1172
The text was updated successfully, but these errors were encountered: