]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: close connection on error if different data at offset
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 20 May 2022 13:14:57 +0000 (15:14 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 20 May 2022 15:56:00 +0000 (17:56 +0200)
commitcc3d7166f45f3b27a1c01237e307bfbfe1dce7b5
tree9c1c1e5b4ebe9682abfe72aad2286d397c8f3d6b
parent209404bff1a652a0940a31fc9ff2549368641ee7
MINOR: mux-quic: close connection on error if different data at offset

As specified by the RFC reception of different STREAM data for the same
offset should be treated with a CONNECTION_CLOSE with error
PROTOCOL_VIOLATION.

Use ncbuf API to detect this case : if add operation fails with
NCB_RET_DATA_REJ with add mode NCB_ADD_COMPARE.
src/mux_quic.c