]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: cli: Deadlock when setting frontend maxconn
authorOliver Dala <o.dala@ixopay.com>
Wed, 25 Sep 2024 09:37:25 +0000 (11:37 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 25 Sep 2024 15:12:11 +0000 (17:12 +0200)
commita889413f5ec5e2c0c6ed30debfd16f666dbc0f99
tree6d20b7670f31317e277137263c58bab1f07c11a6
parent96edacc5465a0029368e3b874beb4a612de63bd0
BUG/MEDIUM: cli: Deadlock when setting frontend maxconn

The proxy lock state isn't passed down to relax_listener
through dequeue_proxy_listeners, which causes a deadlock
in relax_listener when it tries to get that lock.

Backporting: Older versions didn't have relax_listener and directly called
resume_listener in dequeue_proxy_listeners. lpx should just be passed directly
to resume_listener then.

The bug was introduced in commit 001328873c352e5e4b1df0dcc8facaf2fc1408aa

[cf: This patch should fix the issue #2726. It must be backported as far as
2.4]
include/haproxy/listener.h
src/listener.c
src/proxy.c