BUG/MEDIUM: connections: Don't forget to unlock when killing a connection.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 31 Jan 2020 16:22:08 +0000 (17:22 +0100)
committerOlivier Houchard <cognet@ci0.org>
Fri, 31 Jan 2020 16:25:37 +0000 (17:25 +0100)
commit849d4f047f768184f30b989d06502c601f355b9f
tree32c033662fb058aff5c46e9ad0e4d2af12c38ef9
parentc633607c06697b8fb09d94b55b239b9bd7888fc6
BUG/MEDIUM: connections: Don't forget to unlock when killing a connection.

Commit 140237471e408736bb7162e68c572c710a66a526 made sure we hold the
toremove_lock for the corresponding thread before removing a connection
from its idle_orphan_conns list, however it failed to unlock it if we
found a connection, leading to a deadlock, so add the missing deadlock.

This should be backported to 2.1 and 2.0.
src/backend.c