mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 17:09:58 +00:00

Setting the MaxIdleConns is not enough, the MaxIdleConnsPerHost must be set as well. Otherwise, http.Transport will use the DefaultMaxIdleConnsPerHost, which is 2, and then the connection pool will have only 2 connection hold.