MINOR: hlua: properly handle hlua_process_task HLUA_E_ETMOUT
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 24 Nov 2022 13:27:15 +0000 (14:27 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Apr 2023 06:58:16 +0000 (08:58 +0200)
commit795441073cc115838bef0817059b7c4e0878a3bf
treeb4233adcfe4848007dc58f9d285057acc97f3b74
parent0ebd41ff50d2d8b67b9fd725230e4ae8b6d0bcda
MINOR: hlua: properly handle hlua_process_task HLUA_E_ETMOUT

In hlua_process_task: when HLUA_E_ETMOUT was returned by
hlua_ctx_resume(), meaning that the lua task reached
tune.lua.task-timeout (default: none),
we logged "Lua task: unknown error." before stopping the task.

Now we properly handle HLUA_E_ETMOUT to report a meaningful error
message.
src/hlua.c