commit | 528192d310643b11b182f530179048d44483d393 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Sep 27 10:48:01 2015 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Sep 27 11:04:19 2015 +0200 |
tree | 09ebb171a4e878c57d794d254146289d68c719a5 | |
parent | 394586836f662dabff578b93781abb1bbb56719d [diff] |
MEDIUM: lua: only allow actions to yield if not in a final call Actions may yield but must not do it during the final call from a ruleset because it indicates there will be no more opportunity to complete or clean up. This is indicated by ACT_FLAG_FINAL in the action's flags, which must be passed to hlua_resume(). Thanks to this, an action called from a TCP ruleset is properly woken up and possibly finished when the client disconnects.