]> git.ipfire.org Git - thirdparty/haproxy.git/commit
Revert "BUG/MEDIUM: connections: permit to permanently remove an idle conn"
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 12 Nov 2025 16:38:08 +0000 (17:38 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 14 Nov 2025 15:06:34 +0000 (16:06 +0100)
commitd79295d89bc086caa5ddf7ef255c711429a97174
tree1e8dd103e6378cb80967bef2632e1b5f2bcb8234
parent6b9c3d06217b34145ea28c05c5395d736b7448f9
Revert "BUG/MEDIUM: connections: permit to permanently remove an idle conn"

The target patch fixes a rare race condition which happen when a MUX IO
handler is working on a connection already moved into the purge list. In
this case, the handler will incorrectly moved back the connection into
the idle list.

To fix this, conn_delete_from_tree() was extended to remove flags along
with the connection from the idle list. This was performed when the
connection is moved into the purge list. However, it introduces another
issue related to the idle server connection accounting. Thus it is
necessary to revert it prior to the incoming newer fix.

This patch must be backported to every version where the original commit
is.
include/haproxy/connection.h
src/backend.c
src/connection.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_quic.c
src/mux_spop.c
src/server.c
src/ssl_sock.c