]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: peers: Fix exit condition when max-updates-at-once is reached
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 18 Apr 2024 07:05:11 +0000 (09:05 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 18 Apr 2024 07:17:03 +0000 (09:17 +0200)
commit494bc03ff73ba82d5ec7a9f9cc8c3d3d72586286
treeed9c1a47de5db34ba7645732056d8ff940fcbde7
parent4fd656e311d7817e03e0f9ddca4c6635ccd4476f
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.
src/peers.c