Revert "MEDIUM: queue: simplify again the process_srv_queue() API"
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 05:22:18 +0000 (07:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 05:22:18 +0000 (07:22 +0200)
commitccd85a3e08fdd260e15c1dd8380543a1e47d5c9f
tree08604f9a780f6ec0378402e4accc2b84056e4f5a
parent58f4dfb2b038cf5a8e9110f13755af750b20a010
Revert "MEDIUM: queue: simplify again the process_srv_queue() API"

This reverts commit c83e45e9b001591633188a480a896c935d3c9625.

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.
include/haproxy/queue.h
include/haproxy/stream.h
src/backend.c
src/cli.c
src/queue.c
src/server.c
src/stream.c