]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: htx: Transfer HTX_FL_EOM flag on success in htx_append_msg()
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Jul 2026 10:03:27 +0000 (12:03 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Jul 2026 13:28:29 +0000 (15:28 +0200)
commitd1e656046a380e2554ae4fae73dad1fb4109a229
tree6bbbaabf6fe6c0d5e09e333f07867d67d8b5f043
parentb4feec60ba44404b104fbeade08b155279cf0f55
BUG/MINOR: htx: Transfer HTX_FL_EOM flag on success in htx_append_msg()

htx_append_msg() function copy all blocks from a source message to a
destination one. But it never take care to also transfer HTX_FL_EOM flag if
necessary on success. It is important because this function is used to copy
error messages during HTTP analysis.

It seems to be harmless because when an error is triggered the stream is
also closed and most of time a raw copy is performed instead of a
block-per-block copy. But this could lead to prematurely close the
connection at the end of the response.

This patch should be backported to all supported versions.
src/htx.c