]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: threads/queue: avoid recursive locking in pendconn_get_next_strm()
authorWilly Tarreau <w@1wt.eu>
Sun, 26 Nov 2017 17:48:14 +0000 (18:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 26 Nov 2017 17:50:30 +0000 (18:50 +0100)
commit103e5663c8419b1f821ba0d68c1704aeaaec7f91
treee333985625d0627669ef04826e96bbde41c94e4f
parent95c4e14d0c7d798b1f982541ee07e81f422ccf15
BUG/MAJOR: threads/queue: avoid recursive locking in pendconn_get_next_strm()

pendconn_get_next_strm() is called from process_srv_queue() under the
server lock, and calls stream_add_srv_conn() with this lock held, while
the latter tries to take it again. This results in a deadlock when
a server's maxconn is reached and haproxy is built with thread support.
include/proto/stream.h
src/queue.c