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:58:32 +0000 (11:58 +0500)
commitc3ee4b5c00bc288b1a4eb89afc4785fd543506d2
tree7e7b4c86546f6cd1a6a0ef3275c223b113f6a296
parent908e20dddd912f3c95bb28b644acf5b9588789c1
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