]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR/OPTIM: mux-quic: do not allocate rxbuf on standalone FIN
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 27 Feb 2025 10:35:41 +0000 (11:35 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 7 Mar 2025 11:06:26 +0000 (12:06 +0100)
commit20dc8e4ec27672025c30d554a4dd29378b00ea37
tree33d330020f41bd56e68aca2ac3306c94e00618d3
parent861b11334cd4013e89506601482962a726a07e28
MINOR/OPTIM: mux-quic: do not allocate rxbuf on standalone FIN

STREAM FIN may be received without any payload. However, qcc_recv()
always called qcs_get_ncbuf() indiscriminately, which may allocate a QCS
Rx buffer. This is unneeded as there is no payload to store.

Improve this by skipping qcs_get_ncbuf() invokation when dealing with a
standalone FIN signal. This should prevent superfluous buffer
allocation.
src/mux_quic.c