]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: htx: Split on DATA blocks only when blocks are moved to an HTX message
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 7 May 2019 08:52:54 +0000 (10:52 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 7 May 2019 20:16:41 +0000 (22:16 +0200)
commitbc5770b91e8c1c2f226851ed008d6642a80aef99
tree847b68df85f3c0bfcc9fd9270611a748ae907dc9
parentcc5060217e5b88152e22ee26b1c1fe083f357107
MINOR: htx: Split on DATA blocks only when blocks are moved to an HTX message

When htx_xfer_blks() is called to move blocks from an HTX message to another
one, most of blocks must be transferred atomically. But some may be splitted if
there is not enough space to move all the block. This was true for DATA and TLR
blocks. But it is a bad idea to split trailers. During HTTP parsing, only one
TLR block is emitted. It simplifies the processing of trailers to keep the block
untouched.

This patch must be backported to 1.9 because some fixes may depend on it.
src/htx.c