MINOR: mux-quic: simplify decode_qcs API
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 3 Jun 2022 14:40:34 +0000 (16:40 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 7 Jun 2022 16:15:47 +0000 (18:15 +0200)
commit62eef85961f4a2a241e0b24ef540cc91f156b842
treed2548876e27d0c40cc06fed3556424859c588190
parentc0156790e663cc20dc16ac4a73d291b165f49968
MINOR: mux-quic: simplify decode_qcs API

Slightly modify decode_qcs function used by transcoders. The MUX now
gives a buffer instance on which each transcoder is free to work on it.
At the return of the function, the MUX removes consume data from its own
buffer.

This reduces the number of invocation to qcs_consume at the end of a
full demuxing process. The API is also cleaner with the transcoders not
responsible of calling it with the risk of having the input buffer
freed if empty.
include/haproxy/mux_quic-t.h
include/haproxy/mux_quic.h
src/h3.c
src/hq_interop.c
src/mux_quic.c