Chances are that you're getting better reuse of the client connections. If you want to ensure that you reconnect periodically use Request.Close when you don't want the connection maintained, or call Transport.CloseIdleConnections occasionally between requests to force the connections to close.
On Saturday, November 19, 2016 at 9:07:58 AM UTC-5, Vasily Korytov wrote: > > P.S. I would like to line out things that changed since the SSL > certificate check was working: > > 1. Newer Go runtime > 2. HTTP/2 connection > 3. I used http.Get(url) before and now I use http.Client.Do (I use this > for customizing the User-Agent header) > > All the other things did not change, so the changed behaviour is a > surprise for me. > > Would appreciate any clues. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.