From: Amaury Denoyelle Date: Tue, 26 Apr 2022 14:24:39 +0000 (+0200) Subject: BUG/MINOR: h3: fix incomplete POST requests X-Git-Tag: v2.6-dev8~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0fa14a69e85d027acc43615a496a7576d1a707b7;p=thirdparty%2Fhaproxy.git BUG/MINOR: h3: fix incomplete POST requests Always set HTX flag HTX_SL_F_XFER_LEN for http/3. This is correct becuase the size of H3 requests is always known thanks to the protocol framing. This may fix occurences of incomplete POST requests when the client side of the connection has been closed before. --- diff --git a/src/h3.c b/src/h3.c index 0fce7b0faa..9f1e09b465 100644 --- a/src/h3.c +++ b/src/h3.c @@ -141,6 +141,7 @@ static int h3_headers_to_htx(struct qcs *qcs, struct buffer *buf, uint64_t len, } flags |= HTX_SL_F_VER_11; + flags |= HTX_SL_F_XFER_LEN; sl = htx_add_stline(htx, HTX_BLK_REQ_SL, flags, meth, path, ist("HTTP/3.0")); if (!sl)