]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: DNS request retry counter used for retry only
authorBaptiste Assmann <bedis9@gmail.com>
Tue, 8 Sep 2015 22:54:38 +0000 (00:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 10 Sep 2015 13:46:03 +0000 (15:46 +0200)
commitf778bb46d6488629d24829e6c99b4566c7e46ce9
tree2a396b9134e6e509ea9e2aa8399cba4e1ad01922
parent0453a1dd4533530b444255b0cdb96cd6b95aec67
BUG/MINOR: DNS request retry counter used for retry only

There are two types of retries when performing a DNS resolution:
1. retry because of a timeout
2. retry of the full sequence of requests (query types failover)

Before this patch, the 'resolution->try' counter was incremented
after each send of a DNS request, which does not cover the 2 cases
above.
This patch fix this behavior.
src/checks.c
src/dns.c
src/server.c