mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-01-08 00:45:49 +08:00
增大默认的源站的并发连接数(32 * CPU)和空闲连接数(8 * CPU)
This commit is contained in:
@@ -75,11 +75,11 @@ func (this *HTTPClientPool) Client(req *HTTPRequest, origin *serverconfigs.Origi
|
||||
numberCPU = 8
|
||||
}
|
||||
if maxConnections <= 0 {
|
||||
maxConnections = numberCPU * 8
|
||||
maxConnections = numberCPU * 32
|
||||
}
|
||||
|
||||
if idleConns <= 0 {
|
||||
idleConns = numberCPU * 4
|
||||
idleConns = numberCPU * 8
|
||||
}
|
||||
//logs.Println("[ORIGIN]max connections:", maxConnections)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user