恢复源站默认连接数限制

This commit is contained in:
GoEdgeLab
2021-10-01 16:45:46 +08:00
parent 42f8c93e76
commit 08bd01c8a7

View File

@@ -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