Revert "MINOR: queue: update proxy->served once out of the loop"
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 05:26:59 +0000 (07:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 07:55:14 +0000 (09:55 +0200)
commitd83c98eb14817048f4d13524b8215a18eb0b6365
tree0ef3f285b1fe09b14aede94d220b60db789a0a09
parente76fc3253d8e1982c881e1ea79b03f69b7a0c4f3
Revert "MINOR: queue: update proxy->served once out of the loop"

This reverts commit 3e92a31783b545dd58c4be6c588808763e0042bc.

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