[pgpool-committers: 4139] pgpool: Fix a posible hang during health checking

Yugo Nagata nagata at sraoss.co.jp
Thu Jul 20 15:08:38 JST 2017

Fix a posible hang during health checking

Helath checking was hang when any data wasn't sent
from backend after connect(2) succeeded. To fix this,
pool_check_fd() returns 1 when select(2) exits with
EINTR due to SIGALRM while health checkking is performed.

Reported and patch provided by harukat and some modification
by Yugo. Per bug #204.

backported from 3.4 or later;



Modified Files
main.c               | 2 +-
pool.h               | 1 +
pool_process_query.c | 8 ++++++++
3 files changed, 10 insertions(+), 1 deletion(-)

More information about the pgpool-committers mailing list