]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: htx: Change htx_xfer_blk() to also count metadata
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 16 May 2019 09:29:13 +0000 (11:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 May 2019 05:42:12 +0000 (07:42 +0200)
commit156852b613596bdbf8fb67edc6e736d496c89a92
treee39e49b9ed1408d3f5323b801246ea11be0cf46a
parent2ae35045e2910074ad1c540efd3b70afe4407ae9
BUG/MINOR: htx: Change htx_xfer_blk() to also count metadata

This patch makes the function more accurate. Thanks to the function
htx_get_max_blksz(), the transfer of data has been simplified. Note that now the
total number of bytes copied (metadata + payload) is returned. This slighly
change how the function is used in the H2 multiplexer.
src/htx.c
src/mux_h2.c