Re: [go-nuts] Re: What is the behavior of an HTTP persistent connection in Go?

2018-08-23 Thread golangnutter
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

[go-nuts] Re: What is the behavior of an HTTP persistent connection in Go?

2018-08-20 Thread golangnutter
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/

[go-nuts] What is the behavior of an HTTP persistent connection in Go?

2018-08-20 Thread golangnutter
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