-
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
Accessing socket
after HTTP2 session gets destroyed throws an error
#22268
Comments
socket
after HTTP session gets destroyed throws an errorsocket
after HTTP2 session gets destroyed throws an error
Could you provide a complete example? |
It is complete. Please note I metioned |
The example reproduces the error for me with the options below.
It arises from the logic here: node/lib/internal/http2/core.js Line 684 in 89f483b
node/lib/internal/http2/core.js Line 685 in 89f483b
Assigning to socket['example'] instead of reading from it triggers the same problem a few lines later in core.js node/lib/internal/http2/core.js Line 706 in 89f483b
|
investigating... working on a fix |
#22486 addresses this. |
Fixes: nodejs#22268 PR-URL: nodejs#22486 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Fixes: nodejs#22268 PR-URL: nodejs#22486 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
http2
Example:
ProxySocket
assumessocket
is available, but it's undefined after the session gets destroyed.If this line was removed:
node/lib/internal/http2/core.js
Line 833 in 89f483b
it'd work I think.
The text was updated successfully, but these errors were encountered: