]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h3: adjust error reporting on receive
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 13 May 2024 15:44:54 +0000 (17:44 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 16 May 2024 08:31:17 +0000 (10:31 +0200)
commita6993a669bce3a74b79bb14e0d85199256dc808e
tree5333b8f1e7e8bd7398de3bc419fd6da004f0a372
parent079d13f73f61287229486c086415e58aa7a2f112
MINOR: h3: adjust error reporting on receive

This commit is the second step to simplify HTTP/3 error management. This
times it deals with receive side on h3_rcv_buf().

Various internal HTTP/3 to HTX conversion functions does not set
H3_INTERNAL_ERROR on h3c err anymore. Only standard error code are set.
For every errors, both internal and protocol ones, a negative value is
returned. This ensure that h3_rcv_buf() looping is interrupted. This
function will then set H3_INTERNAL_ERROR only if no standard error is
registered via h3c or h3s.

Along the previous commit, this should better reflect internal errors
from protocol ones caused by a faulty client.
src/h3.c