x/net/http2: h2c requests can't be sent when *http.Request.Close is true #67671
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.22.0 windows/amd64
Output of
go env
in your module/workspace:What did you do?
Setting
*http.Request.Close
totrue
to disable persistent connections in proxyprotocol reverse proxy scenarios. This comes from this issue.It can be reproduced,
server:
client:
The error is
http2: client conn not usable
.What did you see happen?
It works for https request but not for h2c requests.
What did you expect to see?
It should work in both cases.
The text was updated successfully, but these errors were encountered: