-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: autoDestroy: true
#30625
Comments
I think to a certain degree this would be simpler if done at the same time as migrating to |
Crossed out http2. Does not seem feasible to move to http2. Unsure if http2 lifecycle adheres to the default streams life cycle. |
Is |
Is not a real stream, yet.
No, it's still not using autoDestroy, https://github.com/nodejs/node/pull/30623/files#diff-f7d8a311cc7ac30522e414465bda2229R51 |
Thank you @ronag for the clarification. I misinterpreted this issue by considering that the modules should have been just refactored to be aware of the new default |
Enable the default `autoDestroy: true` option in IncomingMessage. Refactor `_http_client` and `_http_server` to remove any manual destroying/closing of IncomingMessage. Refactor IncomingMessage `destroy` method to use the standard implementation of the stream module and move the early termination event emitting inside of it. PR-URL: #33035 Refs: #30625 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This has been fixed |
Enable the default `autoDestroy: true` option in IncomingMessage. Refactor `_http_client` and `_http_server` to remove any manual destroying/closing of IncomingMessage. Refactor IncomingMessage `destroy` method to use the standard implementation of the stream module and move the early termination event emitting inside of it. PR-URL: #33035 Refs: #30625 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This is a tracking issue for migrating all node core modules to use
autoDestroy: true
internal/http2/core.jsinternal/http2/compat.jsThe text was updated successfully, but these errors were encountered: