]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: contrib/prometheus-exporter: Don't use channel_htx_recv_max()
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 2 Jul 2019 14:36:15 +0000 (16:36 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 2 Jul 2019 19:08:26 +0000 (21:08 +0200)
commite6cdfe574e2befca8252b320d7415485b985ba56
treec8040ab090054f690f214e1a44ae7f015ece4c27
parentf494957980d3e570ba2f4339481c3a66182e1af3
BUG/MINOR: contrib/prometheus-exporter: Don't use channel_htx_recv_max()

The function htx_free_data_space() must be used intead. Otherwise, if there are
some output data not already forwarded, the maximum amount of data that may be
inserted into the buffer may be greater than what we can really insert.

This patch must be backported to 2.0.
contrib/prometheus-exporter/service-prometheus.c