BUG/MEDIUM: mux-fcgi: Fix locking of idle_conns lock in the FCGI I/O callback
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Mar 2021 12:29:52 +0000 (13:29 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Mar 2021 12:31:32 +0000 (13:31 +0100)
commit2b7a3c474c52ef89c48fb66f16b084b4ee196367
tree09c481aab0437671459b745d3461c8fb5dbd1e51
parent4713176773060651e38345b922b7efbe700b66e9
BUG/MEDIUM: mux-fcgi: Fix locking of idle_conns lock in the FCGI I/O callback

When the commit e388f2fbc ("MEDIUM: muxes: mark idle conns tasklets with
TASK_F_USR1") was backported (commit id b360bb88 on the 2.3), a call to
HA_SPIN_UNLOCK() was missed and not moved in the right code block. Thus it
is possible to unlock the idle_conns lock while it was never acquired.

This patch should fix the issue #1191. It is 2.3 specific, thus there is no
upstream commid id. No backport is needed except if commit b360bb88 is
backported.
src/mux_fcgi.c