BUG/MEDIUM: promex: Wait to have the request before sending the response
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 Sep 2024 20:29:24 +0000 (22:29 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Sep 2024 07:29:26 +0000 (09:29 +0200)
commit278ee5c81bbef0b3c9525b1dd171ab7c736ac313
treef654c0c3539a49531be950b1fa517cbab025c0ab
parentfaf9feac31da865fca309485cfb27ed52b776087
BUG/MEDIUM: promex: Wait to have the request before sending the response

It is similar to the previous fix about the stats applet ("BUG/MEDIUM:
cache/stats: Wait to have the request before sending the response").
However, for promex, there is no crash and no obvious issue. But it depends
on the filter. Indeed, the request is used by promex, independantly if it
was considered as forwarded or not. So if it is modified by the filter,
modification are just ignored.

Same bug, same fix. We now wait the request was forwarded before processing
it and produce the response.

(cherry picked from commit bb2a2bc5f2f6d864cd8770cbd2533d3df1878ad1)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
addons/promex/service-prometheus.c