]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: hlua: Use front SC to detect EOI in HTTP applets' receive functions
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Jun 2023 07:16:27 +0000 (09:16 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Jun 2023 07:16:29 +0000 (09:16 +0200)
commit28d17e26b846e485eac36d82da3c5439524240c7
treeb31e433aaa9b2b8b57e1e45c4aa17ab9d1789a48
parentb7f8af3ca9424984e557f2c95c639dd4f57dfe61
BUG/MEDIUM: hlua: Use front SC to detect EOI in HTTP applets' receive functions

When an HTTP applet tries to get request data, we must take care to properly
detect the end of the message. It an empty HTX message with the SC_FL_EOI
flag set on the front SC. However, an issue was introduced during the SC
refactoring performed in the 2.8. The backend SC is tested instead of the
frontend one.

Because of this bug, the receive functions hang because the test on
SC_FL_EOI flag never succeeds. Of course, by checking the frontend SC (the
opposite SC to the one attached to the appctx), it works.

This patch should fix the issue #2180. It must be backported to the 2.8.
src/hlua.c