-
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
TypeError occur with http2ServerRequest.socket.destroy() #22855
Comments
Can reproduce in the same version. I also tested in a experimental http2 version, node v8.9.4 and I couldn't reproduce, checking if it's destroyed looks concise in my view, we could also directly check if the stream is defined, as the issue is mainly reproducible by calling |
Is there a specific reason you need to call |
I found this issue with Express test case. Express call Example.
|
I'm working on a fix. |
Fixed in #22896. |
Fixes: nodejs#22855 PR-URL: nodejs#22896 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Fixes: nodejs#22855 PR-URL: nodejs#22896 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
I met following error when call http2ServerRequest.socket.destroy();
The minimal code to reproduce.
node: version
I guess we should check if stream destroyed in
finishSendTrailers
, or we should not use setImmeidiate to callfinishSendTrailers
.Currently we can call
http2Session.destroy();
which delete some property whilefinishSendTrailers
is listed in nodejs eventloop and it lead to an error.The text was updated successfully, but these errors were encountered: