[pgpool-committers: 1785] pgpool: Close listen socket when smart shutdown request is made.

Tatsuo Ishii ishii at postgresql.org
Mon Apr 7 20:47:20 JST 2014


Close listen socket when smart shutdown request is made.

When smart shutdown process starts, pgpool children still listen on
the port and clients can send further connection requests which fail
in the end. Which is not only waste of time, but also prevents a load
balancer which sits in front of pgpool from realizing the pgpool is
going down.

Problem analyzed and patch provided by Junegunn Choi in pgpool-hackers
474, and enhanced to take care not only inet domain socket but UNIX
domain socket by me.

Branches
--------
EXCEPTION_MGR
master

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=7aa5b726ba24e97fa4c6535f3ea9ab1e8e9bbb47

Modified Files
--------------
src/main/main.c      |    5 +++++
src/protocol/child.c |   18 +++++++++++++++++-
2 files changed, 22 insertions(+), 1 deletion(-)



More information about the pgpool-committers mailing list