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

This commit is contained in:
刘祥超
2021-03-27 18:40:13 +08:00
parent 4fd42c6d2f
commit 13674e5d63

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)