]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stconn: Wait iobuf is empty to shut SE down during a check send
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 10 Oct 2024 08:34:23 +0000 (10:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 17 Oct 2024 11:53:40 +0000 (13:53 +0200)
commit48f1e2b6fe8457bb5b9d8db9447157c244d871b7
treebef6fae6f4df5fbd3454ce8cc2cf94565c4fc608
parent043f11e891e063f4a2864f4beeb62db028f1663b
BUG/MEDIUM: stconn: Wait iobuf is empty to shut SE down during a check send

When a send attempt is performed on the opposite side from sc_notify() and
all outgoing data are sent while a shut was scheduled, the SE is shut down
because we consider all data were sent and no more are expected. However,
here we must also be carefull to have sent all pending data in the
iobuf. Indeed, some spliced data may be blocked. In this case, if the SE is
shut down, these data may be lost.

This patch should fix the original bug reported in #2749. It must be
backported as far as 2.9.
src/stconn.c