Retry bind on watchdog receive socket.
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 3 Jun 2025 03:40:42 +0000 (12:40 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 3 Jun 2025 03:40:42 +0000 (12:40 +0900)
commitcea80281d5a8e9e480a885ecd02ef0cc1c12a3b8
tree2be83249c87bcdae61b81cd75150ca4fe26301dd
parent774ffdbec67a54faa107910c5804fd8d39455d38
Retry bind on watchdog receive socket.

Occasionally 028.watchdog_enable_consensus_with_half_votes times out
due to failure on binding watchdog receive socket.  This commit tries
to mitigate the issue by retrying bind.  Currently the retry is
performed up to 5 times and each retry is with 1 second sleep.
src/watchdog/watchdog.c