]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: resolvers: continue startup if network is unavailable
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 26 Jul 2022 08:50:09 +0000 (10:50 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 26 Jul 2022 08:59:14 +0000 (10:59 +0200)
commitc31577f32e0094010516a923e9f5e8cc23c23d43
treeb4fb0ce8e6339414c41779ea2a14215633fdb24c
parentdc66f2f97d76613d732c49cc326791863b018f0e
MEDIUM: resolvers: continue startup if network is unavailable

When haproxy starts with a resolver section, and there is a default one
since 2.6 which use /etc/resolv.conf, it tries to do a connect() with the UDP
socket in order to check if the routes of the system allows to reach the
server.

This check is too much restrictive as it won't prevent any runtime
failure.

Relax the check by making it a warning instead of a fatal alert.

This must be backported in 2.6.
src/resolvers.c