BUG/MINOR: resolvers: Wakeup DNS idle task on stopping
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 11 Apr 2023 05:58:27 +0000 (07:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 11 Apr 2023 06:19:06 +0000 (08:19 +0200)
commit142cc1b52a01d2aac30c91a4abb74b0a6aaca705
tree30273e23963d737dec242bed64aa4170b3478f30
parente0f4717727548e2f2dc0e1033b4043ad41827547
BUG/MINOR: resolvers: Wakeup DNS idle task on stopping

Thanks to previous commit ("BUG/MEDIUM: dns: Kill idle DNS sessions during
stopping stage"), DNS idle sessions are killed on stopping staged. But the
task responsible to kill these sessions is running every 5 seconds. It
means, when HAProxy is stopped, we can observe a delay before the process
exits.

To reduce this delay, when the resolvers task is executed, all DNS idle
tasks are woken up.

This patch must be backported as far as 2.6.
src/resolvers.c