diff --git a/internal/nodes/http_client_pool.go b/internal/nodes/http_client_pool.go index 48d2a9e..3222262 100644 --- a/internal/nodes/http_client_pool.go +++ b/internal/nodes/http_client_pool.go @@ -72,6 +72,9 @@ func (this *HTTPClientPool) Client(req *http.Request, origin *serverconfigs.Orig if numberCPU < 8 { numberCPU = 8 } + if maxConnections <= 0 { + maxConnections = numberCPU * 8 + } if idleConns <= 0 { idleConns = numberCPU * 4