]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: h3: fix incomplete POST requests
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 26 Apr 2022 14:24:39 +0000 (16:24 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 28 Apr 2022 13:14:25 +0000 (15:14 +0200)
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.

src/h3.c

index 0fce7b0faa091e702e561e1345a2ed970b47a7cc..9f1e09b465abb24b3840d94fb75074324930c2da 100644 (file)
--- 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)