]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: lua: timeout error with converters, wrapper and actions.
authorThierry FOURNIER <tfournier@arpalert.org>
Sun, 9 Aug 2015 11:10:24 +0000 (13:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 Aug 2015 04:18:30 +0000 (06:18 +0200)
commit61e96c68b9f6d5da7afd7b405d54cb3812e91593
tree5b4237d61f05c3d53eef6b4d03cb2b9ab194e57e
parentf2ee0162c3a898addd2b1f375c0e7106085461c1
BUG/MEDIUM: lua: timeout error with converters, wrapper and actions.

test conf:

   global
      tune.lua.session-timeout 0
      lua-load lol.lua
      debug
      maxconn 4096

   listen test
   bind 0.0.0.0:10010
mode tcp
tcp-request content lua act_test
balance roundrobin
server test 127.0.0.1:3304

lua test:

   function act_test(txn)
      while true do
         core.Alert("TEST")
      end
   end

The function "act_test()" is not executed because a zero timeout is not
considered as TICK_ETERNITY, but is considered as 0.

This path fix this behavior. This is the same problem than the bugfix
685c014e99195d60db0a9cdbc6483f9c44fd0a67.
src/hlua.c