qqq
This commit is contained in:
@@ -152,6 +152,9 @@ class Connection extends Component
|
|||||||
*/
|
*/
|
||||||
protected function getNormalClientHealth(): PDO
|
protected function getNormalClientHealth(): PDO
|
||||||
{
|
{
|
||||||
|
if (!$this->pool()->hasItem($this->cds)) {
|
||||||
|
return $this->newConnect();
|
||||||
|
}
|
||||||
/** @var PDO $client */
|
/** @var PDO $client */
|
||||||
[$client, $time] = $this->pool()->get($this->cds);
|
[$client, $time] = $this->pool()->get($this->cds);
|
||||||
if ((time() - $time) > $this->idle_time) {
|
if ((time() - $time) > $this->idle_time) {
|
||||||
|
|||||||
Reference in New Issue
Block a user