x/net/http2/h2c: h2cHandler does not respect server read/readheader/write timeouts #52868
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 (see playground link below)
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Reproduction in Go playground
What did you expect to see?
An EOF error indicating that the server hit the WriteTimeout and reset the connection.
This is what we see for both plain http.Server, and http2.Server for full HTTP/2 with TLS.
What did you see instead?
The h2c request succeeds even though the handler takes much longer than the WriteTimeout.
The text was updated successfully, but these errors were encountered: