]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: session: protect sess conns list by idle_conns_lock
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 8 Aug 2025 13:54:21 +0000 (15:54 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 28 Aug 2025 12:52:29 +0000 (14:52 +0200)
commit37fca75ef7233b2fdcd6fb4dea9a131d012b4e91
tree023b755e8ea5dd253c6336ad0286dcfa9904750e
parentf3e8e863c909047d077d12a7e65573834ea3e7ae
MEDIUM: session: protect sess conns list by idle_conns_lock

Introduce idle_conns_lock usage to protect manipulation to <priv_conns>
session member. This represents a list of intermediary elements used to
store backend connections attached to a session to prevent their sharing
across multiple clients.

Currently, this patch is unneeded as sessions are only manipulated on a
single-thread. Indeed, contrary to idle connections stored in servers,
takeover is not implemented for connections attached to a session.
However, a future patch will introduce purging of these connections,
which is already performed for connections attached to servers. As this
can be executed by any thread, it is necessary to introduce
idle_conns_lock usage to protect their manipulation.
src/session.c