]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: htx: Detect when tail_addr meet end_addr to maximize free rooms
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 12 Jun 2019 09:08:11 +0000 (11:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Jun 2019 09:13:32 +0000 (11:13 +0200)
commit8c6548608115bc302356f54dceb7e8d3ab12b247
tree7f563d8eeba781b28bc344b7c07cf6419417169a
parente4ab11bb8856c98e5db901e2f079e370a385c970
BUG/MINOR: htx: Detect when tail_addr meet end_addr to maximize free rooms

When a block's payload is moved during an expansion or when the whole block is
removed, the addresses of free spaces are updated accordingly. We must be
careful to reset them when <tail_addr> becomes equal to <end_addr>. In this
situation, we can maximize the free space between the blocks and their payload
and set the other one to 0. It is also important to be sure to never have
<end_addr> greater than <tail_addr>.
src/htx.c