Fix: 823: Watchdog dies and kills pgpool2 when network gets shortly interrupted.
authorMuhammad Usama <m.usama@gmail.com>
Tue, 11 Jun 2024 06:52:00 +0000 (11:52 +0500)
committerMuhammad Usama <m.usama@gmail.com>
Tue, 11 Jun 2024 06:55:36 +0000 (11:55 +0500)
commit570ddf65721ecf434d5db59ebb18aadb8f0a646d
treeafeb17012b7815f3287ae1408cd0fee3b8654a79
parent9db8c865f18de9e5685f42aca52c7875f79ff57d
Fix: 823: Watchdog dies and kills pgpool2 when network gets shortly interrupted.

With network monitoring enabled, a Pgpool node would shut down immediately if it
lost all network interfaces or assigned IP addresses, providing extra protection
by quickly removing a non-communicative node from the cluster.

The issue was that Pgpool responded to network blackout events even when network
monitoring was disabled. This fix ensures that the network monitoring socket is
not opened when network monitoring is not enabled, preventing unnecessary shutdowns.
src/watchdog/watchdog.c