MINOR: htx: Add a function to append an HTX message to another one
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Jan 2020 10:47:53 +0000 (11:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Feb 2020 14:57:25 +0000 (15:57 +0100)
commit698776705509956d295a8d134142b1d9c3b903c9
tree58de90a580c5002e4ba26dcc7eb70d26562515e1
parent89285bff8c969fbb2cd5ea5224bcc158f3d5bfb0
MINOR: htx: Add a function to append an HTX message to another one

the htx_append_msg() function can now be used to append an HTX message to
another one. All the message is copied or nothing. If an error occurs during the
copy, all changes are rolled back.

This patch is mandatory to fix a bug in http_reply_and_close() function. Be
careful to backport it first.

(cherry picked from commit 0ea0c86753ea55123da51cfce3276792e124f2e4)
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/common/htx.h
src/htx.c