[pgpool-committers: 10536] pgpool: Fix heartbeat receiver not working.

Tatsuo Ishii ishii at postgresql.org
Thu Jun 5 19:54:29 JST 2025


Fix heartbeat receiver not working.

65dbbe7a0 added IPv6 support for heartbeat in 4.6. However it
mistakenly bound to only loopback addresses in heartbeat receive
process. Thus heartbeat messages from other watchdog heartbeat sender
were never received. To fix this add AI_PASSIVE flag to hints argument
to getaddrinfo(), which results in binding all network
interfaces. Note that before 4.6, heartbeat receive process uses
INADDR_ANY for bind(), which resulted in binding all network
interfaces too. So there's no big difference between 4.6 and pre-4.6.

Reviewed-by: Bo Peng <pengbo at sraoss.co.jp>
Backpatch-through: v4.6

Branch
------
V4_6_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=b249a118cc5e8383d34925d8107bdee1541877a6

Modified Files
--------------
src/watchdog/wd_heartbeat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



More information about the pgpool-committers mailing list