This commit is contained in:
2021-01-04 18:53:03 +08:00
parent 29fe4f59b2
commit ba73fc77c3
+1 -1
View File
@@ -44,7 +44,7 @@ abstract class Pool extends Component
*/ */
protected function get($name): array protected function get($name): array
{ {
[$timeout, $connection] = $this->_items[$name]->pop(); [$timeout, $connection] = $this->_items[$name]->pop(30);
if (!$this->checkCanUse($name, $timeout, $connection)) { if (!$this->checkCanUse($name, $timeout, $connection)) {
unset($client); unset($client);
return [0, null]; return [0, null];