]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-client: Don't forget to commit changes on HTX message
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Aug 2023 12:28:23 +0000 (14:28 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Aug 2023 12:32:48 +0000 (14:32 +0200)
commite827b45821614f693e38bc30f680f67d171d227d
tree217c38829985032741b34cd2fe7cec10b2d9af31
parentb34d353968db7f646e83871cb6b21a246af84ddc
BUG/MINOR: http-client: Don't forget to commit changes on HTX message

In the http-client I/O handler, HTX request and response are loaded from the
channels buffer. Some changes are preformed in these messages. So, we must
take care to commit changes into the underlying buffer by calling
htx_to_buf().

It is especially important when the HTX message becoms empty to be able to
quickly release the buffer.

This patch should be backported as far as 2.6.
src/http_client.c