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

Tatsuo Ishii ishii at sraoss.co.jp
Sun Oct 24 11:48:17 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
------
V4_1_STABLE

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

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



More information about the pgpool-committers mailing list