]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: htx: Add the function htx_change_blk_value_len()
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 18 Jun 2019 07:37:00 +0000 (09:37 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 18 Jun 2019 08:01:55 +0000 (10:01 +0200)
commitbb0efcdd293de33607a6eba075971b49857375e2
tree2874d0a97dbb1e0018aa85e27f8457a9d45193e2
parent721d686bd10dc6993859f9026ad907753d1d2064
MINOR: htx: Add the function htx_change_blk_value_len()

As its name suggest, this function change the value length of a block. But it
also update the HTX message accordingly. It simplifies the HTX API. The function
htx_set_blk_value_len() is still available and must be used with caution because
this one does not update the HTX message. It just updates the HTX block. It
should be considered as an internal function. When possible,
htx_change_blk_value_len() should be used instead.

This function is used to fix a bug affecting the 2.0. So, this patch must be
backported to 2.0.
include/common/htx.h