This patch must be backported in 1.6
hlua_yield() function returns the required sleep time. The Lua core must
be resume the execution after the required time. The core dedicated to
the http and tcp applet doesn't implement the wake up function. It is a
miss.
This patch fix this.
/* yield. */
case HLUA_E_AGAIN:
+ if (hlua->wake_time != TICK_ETERNITY)
+ task_schedule(ctx->ctx.hlua_apptcp.task, hlua->wake_time);
return;
/* finished with error. */
/* yield. */
case HLUA_E_AGAIN:
+ if (hlua->wake_time != TICK_ETERNITY)
+ task_schedule(ctx->ctx.hlua_apphttp.task, hlua->wake_time);
return;
/* finished with error. */