-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Readable[AsyncIterator] doesn't handle premature close #39086
Comments
Sounds interesting, can I work on the issue? |
@ronag can you suggest the correct way to debug node's internal modules? I'm using Webstorm, and the debugger seems to ignore my breakpoints when it gets into internal modules, but works fine otherwise. |
Sorry. I don’t use breakpoint debugging when working with node. |
PR: #39117 |
That's confusing and discouraging from your side @RaisinTen. @ronag can you at least give a feedback on my PR? Upd: now that I've looked at RaisinTen's PR I see that there are still some parts that I'm missing. What does this part do? if (opts.destroyOnReturn || state.autoDestroy) {
destroyImpl.destroyer(stream, err);
} |
I'm sorry, I thought I could work on this as you didn't publish your PR. |
@daukadolt It destroys the stream if either the |
But I was still working on it 😞 I don't remember any time limit on PR from Contributing.md. I'm new to the project, so it took me a while to read Contributing.md and all MD's that followed + Readable's internals |
There is no time limit on PRs. Anyone can work on any issue whenever they want to without asking for any permission. I didn't know much about the internal code of readable streams either, so I thought it would be nice to shoot a PR and learn few things about it. |
Can we agree to let me finish the ticket then, @RaisinTen? |
@daukadolt No one is stopping you. Please feel free to continue your work. :) |
Fixes: nodejs#39086 Signed-off-by: Darshan Sen <raisinten@gmail.com>
Fixes: nodejs#39086 Signed-off-by: Darshan Sen <raisinten@gmail.com> PR-URL: nodejs#39117 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
createAsyncIterator
should throwERR_STREAM_PREMATURE_CLOSE
if'close'
is emitted before'end'
. Right now I think it just silently succeeds.The text was updated successfully, but these errors were encountered: