[pgpool-committers: 1861] pgpool: Close listen socket when smart shutdown request is made.
m.usama at gmail.com
Tue May 6 20:08:10 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
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.
Author: Tatsuo Ishii <ishii at postgresql.org>
src/main/pgpool_main.c | 7 ++++++-
src/protocol/child.c | 18 +++++++++++++++++-
2 files changed, 23 insertions(+), 2 deletions(-)
More information about the pgpool-committers