This commit is contained in:
2021-04-27 18:25:40 +08:00
parent db0d6a93fc
commit 1caceead5d
+3 -1
View File
@@ -170,9 +170,11 @@ abstract class Pool extends Component
}
$channel = $this->_items[$name];
if ($channel->isEmpty()) {
return $this->createClient($name, $callback);
$this->createByCallback($name, $callback);
}
$connection = $channel->pop(0.002);
return $channel->pop(0.002);
if (!$this->checkCanUse($name, $connection)) {
return $this->createClient($name, $callback);
} else {