]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: contrib/prometheus-exporter: Respect the reserve when data are sent
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Jul 2019 09:43:17 +0000 (11:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Jul 2019 09:47:20 +0000 (11:47 +0200)
commit11921e6819a07219e8ed6adbdd276bdbdcdb324d
treed26ef5037ea91c7864c9d33612f4a42a359c84bc
parent9060fc02b50db59ea97abedc2fce81cbf4eebcfe
BUG/MINOR: contrib/prometheus-exporter: Respect the reserve when data are sent

The previous commit e6cdfe574 ("BUG/MINOR: contrib/prometheus-exporter: Don't
use channel_htx_recv_max()") is buggy. The buffer's reserve must be respected.

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