This commit is contained in:
2023-04-03 00:43:06 +08:00
parent 9b331798fb
commit d1cd8b0d5c
+2 -2
View File
@@ -154,8 +154,8 @@ class Connection extends Component
{
return function () use ($config) {
if ($this->total >= 300) {
$connect = $this->pool->waite($config['cds'], 30);
if ($connect === false) {
$connect = $this->pool->waite($config['cds'], 60);
if (!($connect instanceof \Database\Mysql\PDO)) {
throw new Exception("Get database link wait timeout.");
}
}