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:56:20 +0000 (11:56 +0500)
commit93ba28b0f2fa4890924f616ffcf5c7b08448a044
tree7399fc838a52065056b2a704ad40a01db73e9160
parentc90ec3b8b897f02499a4dda0429ac3efa7050ef7
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