x/net/http2: no way to set timeouts on http2.Transport #45574
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
I'm using the http2.Transport with a h2c client, which works fine, but there is no way to set timeouts which are normally inherited from regular http.Transport - for example ExpectContinueTimeout, which when using manually constructed http2.Transport{} is always set to 0, and therefore the client doesn't wait for the 100-continue response.
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?
Sent a h2c client request with
Expect: 100-continue
, but the client doesn't wait to send the body because there's no way to set the ExpectContinueTimeout, which means it ends up being 0.What did you expect to see?
There should be a way to set the timeouts, so the client would have waited to send the request body.
The text was updated successfully, but these errors were encountered: