This commit is contained in:
2020-09-05 03:08:39 +08:00
parent 3ac3de2562
commit 5ca5768f9f
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -156,7 +156,8 @@ class Connection extends Pool
if (Context::hasContext($coroutineName)) {
return Context::getContext($coroutineName);
}
if ($this->size($coroutineName) < 1 && $this->hasCreate[$coroutineName] < $this->max) {
if ($this->size($coroutineName) < 1) {
// if ($this->size($coroutineName) < 1 && $this->hasCreate[$coroutineName] < $this->max) {
return $this->saveClient($coroutineName, $this->nowClient($coroutineName, $config));
}
[$timeout, $connection] = $client = $this->get($coroutineName);