Implement a configuration variable lua_timeout for Lua procedures

Registered by Kostja Osipov

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

Related branches

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://lua-users.org/wiki/SandBoxes. After some investigations i'll write report you about which way is better.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.