Open ahajunzi opened 1 month ago
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
CC @neild
The HTTP/2 idle timeout is handled in the HTTP/2 transport: https://go.googlesource.com/net/+/refs/tags/v0.28.0/http2/transport.go#862
Go version
go version go1.22.2 linux/amd64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
I hope one connection is checked IdleConnTimeout should start at the latest time I used it rather than the first time
I hope *http.Transport.idleLRU list should remove connection not only by MaxIdleConns (in many cases, you can't estimate proper num for in China there maybe Tens of millions users use our product simultaneously and more http requests will be produced) but also by IdleConnTimeout
What did you expect to see?
read above