commit | 0c55a15ce17ac4ba97151acfcd2d9f54bfba1bc6 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Thu Jul 04 10:03:28 2019 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Fri Jul 05 14:26:14 2019 +0200 |
tree | ed1161af3e21e43507d5b3cc0677e29577afa610 | |
parent | 1b9423d2141ee9e4d5bf0bb30346dbe95361ff88 [diff] |
BUG/MINOR: contrib/prometheus-exporter: Don't try to add empty data blocks When the response buffer is full and nothing more can be inserted, it is important to not try to insert an empty data block. Otherwise, when the function channel_add_input() is called, the flag CF_READ_PARTIAL is set on the response channel while nothing was read and the stream is uselessly woken up. Finally, we have loop while the response buffer is full. This patch must be backported to 2.0.