]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: clean up qcs Rx buffer allocation API
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 11 Dec 2023 14:34:42 +0000 (15:34 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 11 Dec 2023 15:02:30 +0000 (16:02 +0100)
commitb526ffbfb94c8d447429ca18178b94f063a453db
treeb8e9bd8daeddee463b96ff57c5210ad1f005dfbf
parent14d968f2f2fc5deced36ed516846d8d76cfa0094
MINOR: mux-quic: clean up qcs Rx buffer allocation API

Replaces qcs_get_buf() function which naming does not reflect its
purpose. Add a new function qcc_get_stream_rxbuf() which allocate if
needed <qcs.rx.app_buf> and returns the buffer pointer. This function is
reserved for application protocol layer. This buffer is then accessed by
stconn layer.

For other qcs_get_buf() invocation which was used in effect for a local
buffer, replace these by a plain b_alloc().
include/haproxy/mux_quic.h
src/h3.c
src/mux_quic.c