]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: queue: make pendconn_free() work on the stream instead
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Jul 2018 09:13:53 +0000 (11:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Jul 2018 15:32:51 +0000 (17:32 +0200)
commitd0ad4a87f03f5dafa9588f711788c15ba9eb85ff
tree0994dc9b7c98912f6bc10428d9daafe9277a059e
parent9624faec8653121386fdf986540f33676b00f5fc
MEDIUM: queue: make pendconn_free() work on the stream instead

Now pendconn_free() takes a stream, checks that pend_pos is set, clears
it, and uses pendconn_unlink() to complete the job. It's cleaner and
centralizes all the bookkeeping work in pendconn_unlink() only and
ensures that there's a single place where the stream's position in the
queue is manipulated.
include/proto/queue.h
src/proto_http.c
src/queue.c
src/stream.c