]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: do not ack STREAM frames on unrecoverable error
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 7 Jul 2022 13:02:32 +0000 (15:02 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 11 Jul 2022 14:24:03 +0000 (16:24 +0200)
commit57161b7d0c7a371dbd2efb8c85a1496fbf357426
treeb3bd45eb7f739160a521cbef41d5300dfc8b4fde
parent5fbb8691d4ba3a1aa73691d05f2f8beb4ff3a1ab
MINOR: mux-quic: do not ack STREAM frames on unrecoverable error

Improve return path for qcc_recv() on STREAM parsing. It returns 0 on
success. On error, a non-zero value is returned which indicates to the
caller that the packet containing the frame should not be acknowledged.

When qcc_recv() generates a CONNECTION_CLOSE or RESET_STREAM, either
directly or via qcc_get_qcs(), an error is returned which ensure that no
acknowledgement is generated. This required an adjustment on
qcc_get_qcs() API which now returns a success/error code. The stream
instance is returned via a new out argument.
src/mux_quic.c