]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: lua: Fix test on the direction to set the channel exp timeout
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Aug 2019 21:19:45 +0000 (23:19 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Aug 2019 21:29:18 +0000 (23:29 +0200)
commit81921b13716e738dd49462cd79375f90a2bb35cb
treeb607120d6ad519b085ca64da13545eeb99da37dd
parent51c3aa4628cf597eb133f6ae8bb36e09139a73dc
BUG/MEDIUM: lua: Fix test on the direction to set the channel exp timeout

This bug was introduced by the commit bfab2ddd ("MINOR: hlua: Add a flag on the
lua txn to know in which context it can be used"). The wrong test was done. So
the timeout was always set on the response channel. It may lead to an infinite
loop.

This patch must be backported everywhere the commit bfab2ddd is. For now, at
least to 2.0, 1.9 and 1.8.
src/hlua.c