Go's HTTP Transport: The Connection Pool Rewrite and the Idle-Conn Trick
The Transport pool was rewritten around a per-target clientConnPoolEntry with a channel-based lock, keeps two idle connections per host by default, and only recycles a connection …