]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: adapt return value of qcc_decode_qcs()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 3 Mar 2025 09:01:07 +0000 (10:01 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 7 Mar 2025 11:06:26 +0000 (12:06 +0100)
commit7b168e356f09e84f37b8a26f5c709fc33aed42cf
treea6dd34e471f6b9b729c5660c6b615c6a04bbd5a9
parent6b5607d66f15df4b246de6c5b8d94363f4b056d6
MINOR: mux-quic: adapt return value of qcc_decode_qcs()

Change return value of qcc_decode_qcs(). It now directly returns the
value from app_ops rcv_buf callback. Function documentation is updated
to reflect this.

For now, qcc_decode_qcs() return value is ignored by callers, so this
patch should not have any functional change. However, it will become
necessary when implementing multiple Rx buffers per QCS, as a loop will
be implemented to invoke qcc_decode_qcs() on several contiguous buffers.
Decoding must be stopped however as soon as an error is returned by
rcv_buf callback. This is also the case in case of a null value, which
indicates there is not enough data to continue decoding.
src/mux_quic.c