Revert "MEDIUM: queue: make pendconn_process_next_strm() only return the pendconn"
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 05:27:01 +0000 (07:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 07:55:59 +0000 (09:55 +0200)
commita48905bad89e7528035ba7eab3832d4363626f77
treec12b7464280aed33b4a140780fc3a16b027be45d
parentd83c98eb14817048f4d13524b8215a18eb0b6365
Revert "MEDIUM: queue: make pendconn_process_next_strm() only return the pendconn"

This reverts commit 5304669e1b1a213d2754755a47735ecd5549ce7b.

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