Implement a configuration variable lua_timeout for Lua procedures
Implement a configuration parameter lua_timeout for Lua procedures.
When this parameter is set, no procedure can run longer than the timeout time.
Implementation details:
We could utilize lua_sethook() to set a 'count' hook (a hook which runs once every 'count' instructions).
This 'count' hook could run fiber_testcancel(), and the cancellation could be done
from an alarm, set when entering the procedure.
Perhaps there is a more efficient way to solve the problem - this needs to be investigated.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Medium
- Drafter:
- None
- Direction:
- Approved
- Assignee:
- Soshnikov Vasiliy
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
As solution of this ticket we could use the Lua SandBoxes technique but this technique has a lot of limitation. For details about lua SandBoxes the lua-wiki have explanations about this technique and limitations http://