https://golang.org/pkg/net/http/#Transport.MaxIdleConnsPerHost controls the number of keep alive connections per host. The problem I’m having is that I don’t see how the number of keep alive connections per host can exceed 1.
If one is already cached, getConn
will return the cached connection. If there’s no cached connection it will create a new one.
How could there be more than one per host?