BUG/MINOR: backend: hold correctly lock when killing idle conn
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 28 Jan 2021 09:16:29 +0000 (10:16 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Feb 2021 09:23:24 +0000 (10:23 +0100)
commitad1d5b58a7341fa7fe793dac4de461d4f5918582
treef5d1134b84778234daa0e0f868a7f5f49d2f62a0
parent9027d3a6a34a9254bf4c3d642ac1fa886d5c4f23
BUG/MINOR: backend: hold correctly lock when killing idle conn

The wrong lock seems to be held when trying to remove another thread
connection if max fd limit has been reached (locking the current thread
instead of the target thread lock).

This could be backported up to 2.0.

(cherry picked from commit a3bf62ec541479531ebe93bde46b436cb95c9a87)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/backend.c