]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: make sure any h2s always has an endpoint
authorWilly Tarreau <w@1wt.eu>
Tue, 10 May 2022 12:57:16 +0000 (14:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 13 May 2022 12:28:48 +0000 (14:28 +0200)
commitb22b5f02af3061f40e2ff4ef6c6c33daa3a2716e
treec7f535d39268048949f8c52e3140f5f4d0a2e8bb
parent56d5a819d7ee3969b42aa8364c6696cfe45973e8
MINOR: mux-h2: make sure any h2s always has an endpoint

The principle that each mux stream should have an endpoint is not
guaranteed for closed streams that map to the dummy static streams.
Let's have a dummy endpoint for use with such streams. It only has
the DETACHED flag and a NULL conn_stream, and is referenced by all
the closed streams so that we can afford not to test h2s->endp when
trying to access the flags or the CS.
src/mux_h2.c