BUG/MEDIUM: promex: Be sure to never set EOM flag on an empty HTX message

It is the same bug than "BUG/MEDIUM: stats: Be sure to never set EOM flag on
an empty HTX message". We must be sure to set the EOM flag on a non empyt
message to be sure the mux on the client will properly handle
shutdowns. Otherwise, it may miss the end of the message and considers any
shutdown as an abort.

This patch must be backported as far as 2.4. On previous version there is
still the EOM HTX block.

(cherry picked from commit be69cbdafe5a2a7939efe092b3c239eaf776c898)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 672493974a8403fd7628e185124ec9bde23d8a61)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed