Hello list, following a few questions about Lua and HAProxy vars:

Is there a way to read req scoped vars from a Lua script registered with 
core.register_service()? My attempts so far didn’t succeed, I need to copy the 
value to a txn scoped var before call the service.

Another question, one of these vars has a comma separated list of strings that 
I declare with str(itemOne,itemTwo), but HAProxy complains with:

    error detected in proxy 'l' while parsing 'http-request set-var(txn.myvar)' 
rule : fetch method 'str' : expected ')' before ‘,itemTwo)’.

Tested with 2.2 and 2.4. No matter I escape the comma or place inside quotes, 
the error is the same. Is there a way to circumvent this behavior?

Last but not least haproxy.org points to a non existent Lua reference manual, 
maybe /2.0dev/ should be changed to a stable version.

~jm


Reply via email to