]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: peers: Properly handle shutdown when trying to get a line
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 5 Jan 2026 10:12:00 +0000 (11:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 5 Jan 2026 12:46:57 +0000 (13:46 +0100)
commit0b29b76a526d4ce6da073a7afbbd406bb6ea0463
tree5e18da5a400a25dd824d4f74ba0c6372cf90ec1e
parent196d16f2b18465b85228383e92a30f4b5f2b113c
BUG/MEDIUM: peers: Properly handle shutdown when trying to get a line

When a shutdown was reported to a peer applet, the event was not properly
handled if it failed to receive data. The function responsible to get data
was exiting too early if the applet buffer was empty, without testing the
sedesc status. Because of this issue, it was possible to have frozen peer
applets. For instance, it happend on client timeout. With too many frozen
applets, it was possible to reach the maxconn.

This patch should fix the issue #3234. It must be backported to 3.3.
src/peers.c