]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h3: do no crash on forwarding multiple chained response
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 25 Nov 2025 14:38:39 +0000 (15:38 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 25 Nov 2025 14:52:37 +0000 (15:52 +0100)
commitae96defaca917087f1d9ad5e7b0d87a146e58b10
tree461057d37f112dee2d98ccf28c10b181944c7c0c
parenta363b536a984b2fbc944a652a8b66f7c5bbc744e
BUG/MINOR: h3: do no crash on forwarding multiple chained response

h3_resp_headers_to_htx() is the function used to convert an HTTP/3
response into a HTX message. It was introduced on this release for QUIC
backend support.

A BUG_ON() would occur if multiple responses are forwarded
simultaneously on a stream without rcv_buf in between. Fix this by
removing it. Instead, if QCS HTX buffer is not empty when handling with
a new response, prefer to pause demux operation. This is restarted when
the buffer has been read and emptied by the upper stream layer.

No need to backport.
src/h3.c