]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: htx: Defrag if blocks position is changed and the payloads wrap
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 11 Apr 2019 11:43:57 +0000 (13:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Apr 2019 19:34:30 +0000 (21:34 +0200)
commit05aab64b06ebf884584150c938f49be22eed6255
tree2f128f76f3ae7303ba885d01f8d99526daa9603f
parent63263e50edd60d4c53dca227218c6313a25269a8
BUG/MEDIUM: htx: Defrag if blocks position is changed and the payloads wrap

When a header is added or when a data block is added before another one, the
blocks position may be changed (but not their payloads position). For instance,
when a header is added, we move the block just before the EOH, if any. When the
payloads wraps, it is pretty annoying because we loose the last inserted
block. It is neither the tail nor the head. And it is not the front either.

It is a design problem. Waiting for fixing this problem, we force a
defragmentation in such case. Anyway, it should be pretty rare, so it's not
really critical.

This patch must be backported to 1.9.
src/http_htx.c
src/htx.c