Thanks this really is a great explanation.
So new connections will be created if there are no idle connection
available.
The following article suggests setting the Transport.MaxIdleConnsPerHost to
the same value as Transport.MaxIdleConns to allow any host to use all
connections if necessary.
ht
Also do you have any recommendations for deriving appropriate values for
Transport.MaxIdleConns
or Transport.MaxIdleConnsPerHost?
On Monday, August 20, 2018 at 12:59:07 AM UTC-7, golang...@gmail.com wrote:
>
> The http.Transport caches connections for future re-use
> https://golang.org/pkg/net/
The http.Transport caches connections for future re-use
https://golang.org/pkg/net/http/#Transport
Are requests sent serially by which I mean only one request and response
can be handled by this persistent connection at a time, so that other
concurrent requests to the same host are blocked until