]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: queues: Don't forget to unlock the queue before exiting
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 20 Nov 2025 12:51:02 +0000 (13:51 +0100)
committerOlivier Houchard <cognet@ci0.org>
Thu, 20 Nov 2025 12:57:06 +0000 (13:57 +0100)
commite9d34f991e79dc5b39cb35fdc5b8e7239cb0fd06
tree562cffa6d8c19440319d72bfd12954a916e760e3
parent1b443bdec57557b0c0968796c7f855c682f1e298
BUG/MEDIUM: queues: Don't forget to unlock the queue before exiting

In assign_server_and_queue(), there's a rare case when the server was
full, so we created a pendconn, another server was considered but in the
meanwhile the pendconn was unqueued already, so we just left the
function. We did so, however, while still holding the queue lock, which
will ultimately lead to a deadlock, and ultimately the watchdog would
kill the process.
To fix that, just unlock the queue before leaving.

This should be backported to 3.2.
src/backend.c