MINOR: resolvers: Directly call srvrq_update_srv_state() when possible
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 11 Mar 2021 17:06:23 +0000 (18:06 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Apr 2021 14:02:34 +0000 (16:02 +0200)
commitb444f60cbbe0373e445eb672a1fc0775ab89bf13
tree31d611a6c3268967edac65d9889879dc0aee2900
parent3a209b7806570afff800b01dbd5a3aca8b3be278
MINOR: resolvers: Directly call srvrq_update_srv_state() when possible

When the server status must be updated from the result of a SRV resolution,
we can directly call srvrq_update_srv_state(). It is simpler and this avoid
a test on the server DNS resolution.

This patch is mandatory for the next commit. It also rely on "MINOR:
resolvers: Directly call srvrq_update_srv_state() when possible".

(cherry picked from commit 6b117aed492d9916a5c656b4fbfcac6159133c0f)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 07cb0e13937c453682feae1bd7180cf41017660c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit a4fc79b63235bd7d6d288904e252789f577d4805)
[cf: Must be backported as far as 2.0 because of recent changes on resolvers]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/dns.c
src/server.c