[pgpool-committers: 787] pgpool: Avoid a possible hang during the active pgpool exits.

Yugo Nagata nagata at sraoss.co.jp
Mon Feb 4 15:58:57 JST 2013


Avoid a possible hang during the active pgpool exits.

When exiting, the active pgpool brings down the virtual IP and then
sends a packet to other pgpools. However, the packet sometimes is sent
before the virtual IP is brought down completely. In this case the packet
sender is set to this IP. When the IP is brought down before other pgpools
respond, the active pgpool can not recieve the response, and hang up.

In this fix, the active pgpool confirms that the virtual IP is brought
down before sending the packet.

Branch
------
master

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

Modified Files
--------------
watchdog/wd_if.c |   26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)



More information about the pgpool-committers mailing list