BUG/MEDIUM: httpclient/lua: infinite appctx loop with POST
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 2 Mar 2022 15:18:26 +0000 (16:18 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 2 Mar 2022 17:04:08 +0000 (18:04 +0100)
commit8b9173863c6c2f489bb1da35e04c65a611176ed8
tree99fbc0689ea84221db1cdc12b174458c337e2794
parentfd9ff1f80bd39a3c91036d05973a29d5e9ab8d76
BUG/MEDIUM: httpclient/lua: infinite appctx loop with POST

When POSTing a request with a payload, and reusing the same httpclient
lua instance, one could encounter a spinning of the httpclient appctx.

Indeed the sent counter is not reset between 2 POSTs and the condition
for sending the EOM flag is never met.

Must fixed issue #1593.

To be backported in 2.5.

(cherry picked from commit 10a37360c8c5dfc4a65aba81f67ae63fe5fa2161)
[wla: context changes]
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
src/hlua.c