Revert "MEDIUM: queue: unlock as soon as possible"
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 05:21:59 +0000 (07:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 05:21:59 +0000 (07:21 +0200)
commit90a160a465a3e049a5bd36fe1667af77b2c2ae25
tree478012011c419054006e1a7ab66cc3f7b9e4cb97
parent2bf3f2cf7fc8a2a49158a16d8a8c04b1e4d77871
Revert "MEDIUM: queue: unlock as soon as possible"

This reverts commit 5b3927531145384bad8d2b46ca21f017afde81c7.

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