Revert "MINOR: queue: make pendconn_first() take the lock by itself"
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 05:20:26 +0000 (07:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 05:20:26 +0000 (07:20 +0200)
commit2bf3f2cf7fc8a2a49158a16d8a8c04b1e4d77871
tree5178f79353004723cd703d95f348075436b1a744
parentbbab3bf22b057161437629d3e35e4895d65863b5
Revert "MINOR: queue: make pendconn_first() take the lock by itself"

This reverts commit 772e968b06f9348afea7f5785c97214a84c75d19.

The recent changes since 5304669e1 MEDIUM: queue: make
pendconn_process_next_strm() only return the pendconn opened a tiny race
condition between stream_free() and process_srv_queue(), as the pendconn
is accessed outside of the lock, possibly while it's being freed. A
different approach is required.
src/queue.c