diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 7656d9dc..c0e66727 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -43,7 +43,7 @@ abstract class Pool extends Component */ protected function get($name) { - [$timeout, $connection] = $this->_items[$name]->pop(1); + [$timeout, $connection] = $this->_items[$name]->pop(); if (!$this->checkCanUse($name, $timeout, $connection)) { unset($client); return [0, null]; diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index e1e55ce7..7ab3db02 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -265,9 +265,9 @@ class Connection extends Pool public function checkCanUse($name, $time, $connect) { try { - if ($time + 60 * 10 < time()) { - return $result = false; - } +// if ($time + 60 * 10 < time()) { +// return $result = false; +// } if (empty($connect) || !($connect instanceof PDO)) { return $result = false; }