This commit is contained in:
as2252258@163.com
2021-05-02 13:51:12 +08:00
parent 9e1fc9ab1e
commit 02b8c7ea3e
-4
View File
@@ -174,11 +174,7 @@ abstract class Pool extends Component
if ($this->_items[$name]->isEmpty()) {
$this->createByCallback($name, $callback);
}
$time = microtime(true);
$connection = $this->_items[$name]->pop(0.002);
if (($end = microtime(true) - $time) >= 0.01) {
$this->error('waite channel connect use time.' . $end);
}
if (!$this->checkCanUse($name, $connection)) {
return $this->createClient($name, $callback);
} else {