BUG/MEDIUM: peers: Fix exit condition when max-updates-at-once is reached
When a peer applet is pushing updates, we limit the number of update sent at
once via a global parameter to not spend too much time in the applet. On
interrupt, we claimed for more room to be woken up quickly. However, this
statement is only true if something was pushed in the buffer. Otherwise,
with an empty buffer, if the stream itself is not woken up, the applet
remains also blocked because there is no send activity on the other side to
unblock it.
In this case, instead of requesting more room, it is sufficient to state the
applet have more data to send.
This patch must be backported as far as 2.6.
(cherry picked from commit 494bc03ff73ba82d5ec7a9f9cc8c3d3d72586286)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit d4b21b943553f78c25ee4fa6e087eb96d016aca0)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed