BUG/MINOR: resolvers: fix sent messages were counted twice
authorEmeric Brun <ebrun@haproxy.com>
Fri, 29 Oct 2021 14:28:33 +0000 (16:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Nov 2021 16:16:46 +0000 (17:16 +0100)
commitc37caab21c172ca042d5ef3aca6d1102f479dd53
tree8b67257dbf4f75b59a3f43ca03aaeb5018287c4c
parentf9d5957cd9a94c517a9d1fea8f536ab08922d9a9
BUG/MINOR: resolvers: fix sent messages were counted twice

The sent messages counter was increased at both resolver.c and dns.c
layers.

This patch let the dns.c layer count the sent messages since this
layer handle a retry if transport layer is not ready (EAGAIN on udp
or tcp session ring buffer full).

This patch should be backported on all versions using a split of those
layers for resolving (v >=2.4)
src/resolvers.c