]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: httpclient/lua: crash when the lua task timeout before the httpclient
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 20 Oct 2022 08:57:28 +0000 (10:57 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 20 Oct 2022 16:47:15 +0000 (18:47 +0200)
commitbb581423b3ba48dfafb53b70205483f766242a6b
tree4af2a2de8d2d43654f59905c15c3e5f9321d1bf3
parent321d100cc8f86e5713fa7325acb30ef0e962d900
BUG/MEDIUM: httpclient/lua: crash when the lua task timeout before the httpclient

When the lua task finished  before the httpclient that are associated to
it, there is a risk that the httpclient try to task_wakeup() the lua
task which does not exist anymore.

To fix this issue the httpclient used in a lua task are stored in a
list, and the httpclient are destroyed at the end of the lua task.

Must be backported in 2.5 and 2.6.
include/haproxy/hlua-t.h
src/hlua.c