]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: support sbuf allocation in quic_stream
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 13 Jun 2024 13:26:51 +0000 (15:26 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 20 Aug 2024 16:12:27 +0000 (18:12 +0200)
commit885e4c5cf81bc2435c6b46c957acba7eb5e72a07
tree4ca06f23af655e0cc739d6cfbda47108957e2d1d
parentd0d8e57d47f79012a790b7e1d34374f18d5b2e92
MINOR: quic: support sbuf allocation in quic_stream

This patch extends qc_stream_desc API to be able to allocate small
buffers. QUIC MUX API is similarly updated as ultimatly each application
protocol is responsible to choose between a default or a smaller buffer.

Internally, the type of allocated buffer is remembered via qc_stream_buf
instance. This is mandatory to ensure that the buffer is released in the
correct pool, in particular as small and standard buffers can be
configured with the same size.

This commit is purely an API change. For the moment, small buffers are
not used. This will changed in a dedicated patch.
include/haproxy/mux_quic.h
include/haproxy/quic_stream-t.h
include/haproxy/quic_stream.h
src/h3.c
src/hq_interop.c
src/mux_quic.c
src/quic_stream.c