]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: dns: Delay the attempt to run a DNS resolution on check failure.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 22 May 2018 16:40:07 +0000 (18:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 May 2018 14:57:15 +0000 (16:57 +0200)
commitf3d9e608d73fae1a7f00341cb52371e4b2181c66
tree838426253950aca4705191fb3005ec1588e6060e
parent926594f60627c7727befb15c50eb7680f30948a4
BUG/MEDIUM: dns: Delay the attempt to run a DNS resolution on check failure.

When checks fail, the code tries to run a dns resolution, in case the IP
changed.
The old way of doing that was to check, in case the last dns resolution
hadn't expired yet, if there were an applicable IP, which should be useless,
because it has already be done when the resolution was first done, or to
run a new resolution.
Both are a locking nightmare, and lead to deadlocks, so instead, just wake the
resolvers task, that should do the trick.

This should be backported to 1.8.
src/dns.c