]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stconn/mux-h2: Use a iobuf flag to report EOI to consumer side during FF
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 7 Nov 2023 09:56:57 +0000 (10:56 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Nov 2023 20:14:07 +0000 (21:14 +0100)
commit84d26bcf3fd74e153dea98ad7d612373ea5c30ae
treebc6c2248415f96deeb16ed48186ee6fa992c854a
parent4be0c7c655d96dd5af0253781446c24d5fde55f4
MINOR: stconn/mux-h2: Use a iobuf flag to report EOI to consumer side during FF

IOBUF_FL_EOI iobuf flag is now set by the producer to notify the consumer
that the end of input was reached. Thanks to this flag, we can remove the
ugly ack in h2_done_ff() to test the opposite SE flags.

Of course, for now, it works and it is good enough. But we must keep in mind
that EOI is always forwarded from the producer side to the consumer side in
this case. But if this change, a new CO_RFL_ flag will have to be added to
instruct the producer if it can forward EOI or not.
include/haproxy/stconn-t.h
src/mux_h1.c
src/mux_h2.c