]> git.kaiwu.me - haproxy.git/commit
MEDIUM: dns: Stick the TCP nameserver tasks to the resolvers' thread
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 29 Jul 2026 22:26:58 +0000 (00:26 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 30 Jul 2026 11:36:17 +0000 (13:36 +0200)
commitb8a311f49f177802e00f2b91b05294926641a772
tree3c6f1d3ac9e5e631428262820cd5b6acd743d516
parentdcb93d1c0f708a52432b5888f6b1f50edbe1876b
MEDIUM: dns: Stick the TCP nameserver tasks to the resolvers' thread

The tasks handling the TCP nameservers (task_req, task_rsp, task_idle)
are created with no thread affinity, but with thread groups having their
own file descriptors table, it has to run on the same thread as the
one who created the socket, or maybe the other thread will not be able
to use the socket.
In practice, it was not a problem, because the scheduler will wake the
task on the running thread. But that may change in the future, so make
sure we always run on the current thread from start to finish.
src/resolvers.c