]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stconn: Pretend the SE have more data to deliver on abortonclose
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 22 Oct 2024 06:26:20 +0000 (08:26 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 22 Oct 2024 09:16:24 +0000 (11:16 +0200)
commit7dc930d231d7576ea73c36a86085ab74f174e8c5
treea9b38aabae38a268ad21c43af9bc42eeb7db65df
parentded28f6e5c210b49ede7edb25cd4b39163759366
BUG/MINOR: stconn: Pretend the SE have more data to deliver on abortonclose

When abortonclose option is enabled on the backend, at the SC level, we must
still pretend the SE have more data to deliver to be able to receive the
EOS. It must be performed at 2 places:

  * When the backend is set and the connection is requested. It is when the
    option is seen for the first time.

  * After a receive attempt, if the EOI flag is set on the sedesc.

Otherwise, when an abort is detected by the mux, the SC is not
notified.

This patch should fix the issue #2764.

This bug probably exists in all stable version but is only visible since
bca5e1423 ("OPTIM: stconn: Don't pretend mux have more data to deliver on
EOI/EOS/ERROR"). So I suggest to not backport it for now, except if the commit
above is backported.
src/stconn.c
src/stream.c