x/net/http2: server cannot process Trailer frames correctly after RST_STREAM #58286
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run the following server and client,then I will get PROTOCOL_ERROR
client code:
server code:
What did you expect to see?
server processes the requests correctly
What did you see instead?
server print
PROTOCOL_ERROR
:client return error:
Additional Context
I try to send many requests with Trailer and some of them are returned directly by the server due to authentication issues. I found that the server sends
RST_STREAM
to close the request and throwsPROTOCOL_ERROR
after receiving the Header frame (Trailer)server Running with
GODEBUG=http2debug=2
:client Running with
GODEBUG=http2debug=2
:The text was updated successfully, but these errors were encountered: