]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: Use <body_len> H2S field for payload without content-length
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 18 Sep 2025 06:36:54 +0000 (08:36 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Oct 2025 09:01:36 +0000 (11:01 +0200)
commit3a6a576e7369efa0fb6f5e88b08e57b1bbe5e9b7
tree279d0912d27eb158b2bdbef2314e963aede3805e
parent4fdc23e648570565f831865bc055eb094f147f29
MINOR: mux-h2: Use <body_len> H2S field for payload without content-length

Before, the <body_len> H2S field was only use for verity the annonced
content-lenght value was respected. Now, this field is used for all
messages. Messages with a content-length are still handled the same way.
<body_len> is set to the content-length value and decremented by the size of
each DATA frame. For other messages, the value is initialized to ULLONG_MAX
and still decremented by the size of each DATA frame. This change is
mandatory to properly define the known input payload length value of the
sedesc.
src/mux_h2.c