]> git.kaiwu.me - haproxy.git/commit
MINOR: h3: do not consider missing buf room as error on trailers
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 4 Jan 2024 11:01:24 +0000 (12:01 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 4 Jan 2024 14:37:49 +0000 (15:37 +0100)
commit8df47442d2f866f50f16d62fb05fb8ad02949b7a
treecbb287f6799bb58d0c52ba9d5244aa2af2d0ab08
parent14673fe54d91af3ce28ee2d94ca77f626eb1a7ea
MINOR: h3: do not consider missing buf room as error on trailers

Improve h3_resp_trailers_send() return value to be similar with
h3_resp_data_send(). In particular, if QCS Tx buffer has not enough
space for trailer encoding, 0 is returned instead of an error value,
with QC_SF_BLK_MROOM set.

This unify HTTP/3 headers/data/trailers encoding functions. Negative
error codes are limited to fatal error which should cause a connection
closure. Not enough output buffer space is only a transient condition
which is reflect by the QC_SF_BLK_MROOM flag.
src/h3.c