]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: httpclient: end callback in applet release
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 6 Apr 2022 12:12:37 +0000 (14:12 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 6 Apr 2022 12:19:36 +0000 (14:19 +0200)
commiteb0d4c40ac0a21944985a2d3ef6cf21cc05b87a8
treea148c66bfae1a9ee0137a648d0d1d96c0cc80248
parent71abad050a9bd8864ee0a1f37eca1c5d1b5efe2f
BUG/MINOR: httpclient: end callback in applet release

In case an error provokes the release of the applet, we will never call
the end callback of the httpclient.

In the case of a lua script, it would mean that the lua task will never
be waked up after a yield, letting the lua script stuck forever.

Fix the issue by moving the callback from the end of the iohandler to
the applet release function.

Must be backported in 2.5.
src/http_client.c