Revert "MEDIUM: queue: refine the locking in process_srv_queue()"
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 05:26:57 +0000 (07:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 07:55:14 +0000 (09:55 +0200)
commite76fc3253d8e1982c881e1ea79b03f69b7a0c4f3
tree5f8e3860fd2ccdd8faf369949de5b641deed8697
parent3f70fb9ea2d8bdcc6f6fa8190b604f3637349bc7
Revert "MEDIUM: queue: refine the locking in process_srv_queue()"

This reverts commit 1b648c857bb9e0fb857e86838bcca0c9ed01e2bd.

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