[pgpool-committers: 8076] pgpool: Fix connection counter issue when reserved_connections is 0.

Tatsuo Ishii ishii at sraoss.co.jp
Sun Oct 24 11:55:39 JST 2021


Fix connection counter issue when reserved_connections is 0.

If reserved_connections is 0, we don't need to manage the connection
counter to check if the count is larger than
(pool_config->num_init_children - pool_config->reserved_connections).
So remove the check.  This will prevent unwanted "Sorry, too many
clients already" error" by accidental counter leak.

For reserved_connections > 0 case, we need to fix the counter leak but
it's another story.

Discussion: https://www.pgpool.net/pipermail/pgpool-general/2021-October/007808.html

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=6ed89298fb9a71e5554ee44d4abe0cfd0f2da0f0

Modified Files
--------------
src/protocol/child.c | 40 ++++++++++++++++++++++------------------
1 file changed, 22 insertions(+), 18 deletions(-)



More information about the pgpool-committers mailing list