Skip to content

Commit

Permalink
ensure concurrent pool usage do not force connection limit overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fon-MaXX committed Aug 26, 2022
1 parent d4d7cd9 commit fbd6ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Swoole/PgSQL/ConnectionPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private function make() : void
if (! $this->map || ! $this->pool) {
return;
}
if ($this->pool->capacity === $this->capacity()) {
if ($this->pool->capacity <= $this->capacity()) {
return;
}
try {
Expand Down

0 comments on commit fbd6ab4

Please sign in to comment.