Server: prevent stupidity with settings.async-workers

This commit is contained in:
Dylan K. Taylor 2018-06-13 16:44:40 +01:00
parent 4b99285fd6
commit 763e20ba4e

View File

@ -1515,7 +1515,7 @@ class Server{
$poolSize = max(1, $processors);
}
}else{
$poolSize = (int) $poolSize;
$poolSize = max(1, (int) $poolSize);
}
$this->asyncPool = new AsyncPool($this, $poolSize, (int) max(-1, (int) $this->getProperty("memory.async-worker-hard-limit", 256)), $this->autoloader, $this->logger);