This commit is contained in:
2020-09-04 19:15:05 +08:00
parent f7d6d92f16
commit 2c81087a72
+2 -1
View File
@@ -188,12 +188,13 @@ class Connection extends Pool
{
$this->info('client has :' . $this->size($coroutineName));
[$time, $client] = $this->get($coroutineName, -1);
$this->info('client has create :' . ($this->hasCreate[$coroutineName] ?? 0));
if ($client instanceof PDO) {
return $this->saveClient($coroutineName, $client);
}
unset($client);
$this->info('client has create :' . ($this->hasCreate[$coroutineName] ?? 0));
if (($this->hasCreate[$coroutineName] ?? 0) >= $this->max) {
[$time, $client] = $this->get($coroutineName, -1);