调整反向代理的默认最大连接数和最大空闲连接数

This commit is contained in:
GoEdgeLab
2021-03-27 18:40:13 +08:00
parent 3ce05d89d0
commit 22aa7129c3

View File

@@ -73,11 +73,11 @@ func (this *HTTPClientPool) Client(req *http.Request, origin *serverconfigs.Orig
numberCPU = 8
}
if maxConnections <= 0 {
maxConnections = numberCPU * 2
maxConnections = numberCPU * 8
}
if idleConns <= 0 {
idleConns = numberCPU
idleConns = numberCPU * 4
}
//logs.Println("[ORIGIN]max connections:", maxConnections)