]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: httpclient/lua: rcv freeze when no request payload
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 4 Nov 2021 08:45:58 +0000 (09:45 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 8 Nov 2021 16:36:31 +0000 (17:36 +0100)
commit933fe394bb11490d45fd231b43b7cd93a0cf21e4
tree9481e5d93246578c414bdb66bd4bbadcb7ae1b4c
parentbc84657410f98070d3afa775e56c754ca486a09d
BUG/MINOR: httpclient/lua: rcv freeze when no request payload

This patch fixes the receive part of the lua httpclient when no payload
was sent.

The lua task was not awoken once it jumped into
hlua_httpclient_rcv_yield(), which caused the lua client to freeze.

It works with a payload because the payload push is doing the wakeup.

A change in the state machine of the IO handler is also require to
achieve correctly the change from the REQ state to the RES state, it has
to detect if there is the right EOM flag in the request.
src/hlua.c
src/http_client.c