-
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
HTTP/2 ServerResponse.destroy() has the same effect as ServerResponse.end() #35302
Comments
I just encountered this issue as well. You can workaround this issue by adding any error to the Once you do that, you will trigger another bug in the client, where
|
Calling |
Hmm, this is actually already tested against here (introduced in #15074): node/test/parallel/test-http2-compat-serverresponse-destroy.js Lines 44 to 51 in b15ed65
Except, the test is wrong! – and doesn't match the equivalent HTTP1 behaviour (which will emit an I tried messing with the _destroy() implementation in Actually, the aborted comment is plain wrong, since the aborted event is only emitted when the writable side is still open (which it won't be). So this logic just loses all such aborts: node/lib/internal/http2/core.js Lines 2200 to 2204 in ff02801
|
FYI, I made an attempt at fixing all 3 bugs in #35209. |
Linux solus 5.6.19-158.current #1 SMP PREEMPT Sun Jul 26 14:17:01 UTC 2020 x86_64 GNU/Linux
What steps will reproduce the bug?
Note: it works as expected when the method is e.g. POST and
stream.end()
is not called.How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior?
aborted
or anerror
event.What do you see instead?
end
event is emitted.The text was updated successfully, but these errors were encountered: