This commit is contained in:
2021-04-27 17:46:26 +08:00
parent ab3b71d5ba
commit 6aa472ceca
+1 -1
View File
@@ -168,7 +168,7 @@ abstract class Pool extends Component
if (!Context::inCoroutine()) {
return $this->createClient($name, $callback);
}
if (!$this->_items[$name]->isEmpty()) {
if ($this->_items[$name]->length() > 10) {
$connection = $this->_items[$name]->pop();
if (!$this->checkCanUse($name, $connection)) {
return $this->createClient($name, $callback);