BUG/MINOR: h3: close connection on header list too big
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 21 Dec 2023 16:42:43 +0000 (17:42 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 2 Jan 2024 06:56:12 +0000 (07:56 +0100)
commit1f55b47c5398dedf8968ac908d1588442596af1d
tree6a6d6c92bf226d84051d1b1a53f365732aeedb7b
parente98aa89cf838c9af24b5a9335ab3daef795feca0
BUG/MINOR: h3: close connection on header list too big

When parsing a HTX response, if too many headers are present, stop
sending and close the connection with error code H3_INTERNAL_ERROR.

Previously, no error was reported despite the interruption of header
parsing. This cause an infinite loop. However, this is considered as
minor as it happens on the response path from backend side.

This should be backported up to 2.6.
It relies on previous commit
  "MINOR: h3: check connection error during sending".

(cherry picked from commit d077f7ccf48424fa40eea29c69283ec23732c96d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/h3.c