This commit is contained in:
2021-07-05 17:02:40 +08:00
parent be9c469a0f
commit 31a5053bed
+2 -2
View File
@@ -166,7 +166,7 @@ class ClientsPool extends Component
return;
}
if ($this->creates === -1) {
$this->creates = Timer::tick(3000, [$this, 'Heartbeat_detection']);
$this->creates = Timer::tick(60000, [$this, 'Heartbeat_detection']);
}
static::$_connections[$name] = new Channel($max);
$this->max = $max;
@@ -184,7 +184,7 @@ class ClientsPool extends Component
static::$_connections[$name] = new Channel(Config::get('databases.pool.max', 10));
}
if ($this->creates === -1) {
$this->creates = Timer::tick(3000, [$this, 'Heartbeat_detection']);
$this->creates = Timer::tick(60000, [$this, 'Heartbeat_detection']);
}
return static::$_connections[$name];
}