变更
This commit is contained in:
@@ -154,8 +154,8 @@ class Connection extends Component
|
|||||||
{
|
{
|
||||||
return function () use ($config) {
|
return function () use ($config) {
|
||||||
if ($this->total >= 300) {
|
if ($this->total >= 300) {
|
||||||
$connect = $this->pool->waite($config['cds'], 30);
|
$connect = $this->pool->waite($config['cds'], 60);
|
||||||
if ($connect === false) {
|
if (!($connect instanceof \Database\Mysql\PDO)) {
|
||||||
throw new Exception("Get database link wait timeout.");
|
throw new Exception("Get database link wait timeout.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user