Use runtime.GOMAXPROCS to calc default concurrency

This commit is contained in:
DarthSim
2022-12-01 01:42:47 +06:00
parent 1ededbb11f
commit bf472d3df9

View File

@@ -203,7 +203,7 @@ func Reset() {
KeepAliveTimeout = 10
ClientKeepAliveTimeout = 90
DownloadTimeout = 5
Concurrency = runtime.NumCPU() * 2
Concurrency = runtime.GOMAXPROCS(0) * 2
RequestsQueueSize = 0
MaxClients = 2048