]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h1: Xfer as much payload data as possible during output processing
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Oct 2019 12:01:24 +0000 (14:01 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Oct 2019 20:28:44 +0000 (22:28 +0200)
commitd9233f091a39b9436da7ed7b0da766169b7c04d3
treeff7033298b67e4e0cfa8b894c5441eddb4cfad07
parenta61aa544b4b95d1416fe5684ca2d3a0e110e9743
MINOR: mux-h1: Xfer as much payload data as possible during output processing

When an outgoing HTX message is formatted to a raw message, DATA blocks may be
splitted to not tranfser more data than expected. But if the buffer is almost
full, the formatting is interrupted, leaving some unused free space in the
buffer, because data are too large to be copied in one time.

Now, we transfer as much data as possible. When the message is chunked, we also
count the size used to encode the data.
src/mux_h1.c