]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stats: Get the right scope pointer depending on HTX is used or not
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Jan 2019 10:07:34 +0000 (11:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Jan 2019 16:27:49 +0000 (17:27 +0100)
commited7a066b454f09fee07a9ffe480407884496461b
tree58c4f133c3f5377b48e6fba9881b54092f0dd748
parentdaa356bd7d9a04c69b709842d09ceb623aa0705f
BUG/MEDIUM: stats: Get the right scope pointer depending on HTX is used or not

For HTX streams, the scope pointer is relative to the URI in the start-line. But
for streams using the legacy HTTP representation, the scope pointer is relative
to the beginning of output data in the channel's buffer. So we must be careful
to use the right one depending on the HTX is used or not.

Because the start-line is used to get de scope pointer, it is important to keep
it after the parsing of post paramters. So now, instead of removing blocks when
read in the function stats_process_http_post(), we just move on next, leaving it
in the HTX message.

Thanks to Pieter (PiBa-NL) to report this bug.

This patch must be backported to 1.9.
src/proto_htx.c
src/stats.c