Revert "MEDIUM: queue: move the queue lock manipulation to pendconn_process_next_strm()"
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 05:22:03 +0000 (07:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 05:22:03 +0000 (07:22 +0200)
commit5343d8ed6f0e8129ed51234918f75d5b3c3a2610
treea084d1166db752cf7714960b2a3e08a2688d9351
parent90a160a465a3e049a5bd36fe1667af77b2c2ae25
Revert "MEDIUM: queue: move the queue lock manipulation to pendconn_process_next_strm()"

This reverts commit 9a6d0ddbd6788a05c6730bf0e9e8550d7c5b11aa.

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