]> git.kaiwu.me - haproxy.git/commit
MEDIUM: server: Do not close other thread groups' connections at deinit
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 29 Jul 2026 22:59:04 +0000 (00:59 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 30 Jul 2026 11:36:17 +0000 (13:36 +0200)
commit5ce5a3638255678e63a0109062f65c0bca7c6508
tree7cb11a1c3c0a08bf4152e7dc8653126753db65e4
parentb8a311f49f177802e00f2b91b05294926641a772
MEDIUM: server: Do not close other thread groups' connections at deinit

srv_close_idle_conns() runs at deinit, on the last remaining thread,
and closes the FDs of every thread's idle connections. With
per-thread-group FD tables, the connections of the other thread groups
were already closed by the kernel when the last thread of their group
exited, and their numbers are only meaningful in those groups' tables,
closing them from here would in fact close whatever FD carries the
same number in this thread's own table, and let sock_conn_ctrl_close()
rewrite an unrelated entry of this group's FD table. So in that case,
only release the memory and leave the FDs alone.
src/server.c