]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: shard by thread sess_conns member
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 14 Aug 2025 16:18:01 +0000 (18:18 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 28 Aug 2025 12:52:29 +0000 (14:52 +0200)
commitf234b40cdeaaff6d94b1b341cac9401458e1a2b3
tree4aa5fdde162b0c5708c68c5ec787d0897b87361d
parent37fca75ef7233b2fdcd6fb4dea9a131d012b4e91
MINOR: server: shard by thread sess_conns member

Server member <sess_conns> is a mt_list which contains every backend
connections attached to a session which targets this server. These
connecions are not present in idle server trees.

The main utility of this list is to be able to cleanup these connections
prior to removing a server via "del server" CLI. However, this procedure
will be adjusted by a future patch. As such, <sess_conns> member must be
moved into srv_per_thread struct. Effectively, this duplicates a list
for every threads.

This commit does not introduce functional change. Its goal is to ensure
that these connections are now ordered by their owning thread, which
will allow to implement a purge, similarly to idle connections attached
to servers.
include/haproxy/server-t.h
src/server.c
src/session.c