]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: resolvers: Wake resolver task up whne unlinking a stream requester
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Sep 2025 05:57:28 +0000 (07:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Sep 2025 05:57:29 +0000 (07:57 +0200)
commit157852ce99ba6f142774f12a4d5b2f950a87b756
tree5d6c58ddcf212e1796a763c5dc8d217c2f756bf2
parente6a9192af68c5e385aa73c3e1cc51eb9f0cc09d6
BUG/MEDIUM: resolvers: Wake resolver task up whne unlinking a stream requester

Another regression introduced with the commit 3023e9819 ("BUG/MINOR:
resolvers: Restore round-robin selection on records in DNS answers"). Stream
requesters are unlinked from any theards. So we must not try to queue the
resolver's task here because it is not allowed to do so from another thread
than the task thread. Instead, we can simply wake the resolver's task up. It
is only performed when the last stream requester is unlink from the
resolution.

This patch should fix the issue #3119. It must be backported with the commit
above.
src/resolvers.c