Archived
恢复源站默认连接数限制
This commit is contained in:
@@ -72,6 +72,9 @@ func (this *HTTPClientPool) Client(req *http.Request, origin *serverconfigs.Orig
|
|||||||
if numberCPU < 8 {
|
if numberCPU < 8 {
|
||||||
numberCPU = 8
|
numberCPU = 8
|
||||||
}
|
}
|
||||||
|
if maxConnections <= 0 {
|
||||||
|
maxConnections = numberCPU * 8
|
||||||
|
}
|
||||||
|
|
||||||
if idleConns <= 0 {
|
if idleConns <= 0 {
|
||||||
idleConns = numberCPU * 4
|
idleConns = numberCPU * 4
|
||||||
|
|||||||
Reference in New Issue
Block a user