Lua http-request use-service issue

2018-04-30 Thread Hessam Mirsadeghi
Hi, I'm using a Lua function with the applet class to respond to certain requests directly from haproxy/Lua. For this, I have "http-request use-service lua.foo if some_acl" in my frontend. Everything works fine except when I add a default backend which itself has a line like "http-request use-serv

Re: Segfault in haproxy v1.8 with Lua

2018-04-13 Thread Hessam Mirsadeghi
I see your point. Thanks for your help. On Fri, Apr 13, 2018 at 4:20 AM, Christopher Faulet wrote: > Le 12/04/2018 à 17:41, Hessam Mirsadeghi a écrit : > >> But using an applet on a request will prevent the request from being sent >> to the backend servers; I still want

Re: Segfault in haproxy v1.8 with Lua

2018-04-12 Thread Hessam Mirsadeghi
But using an applet on a request will prevent the request from being sent to the backend servers; I still want backend servers to receive the request. On Thu, Apr 12, 2018 at 9:16 AM, Christopher Faulet wrote: > Le 12/04/2018 à 14:51, Hessam a écrit : > >> Thanks for your response Christopher. >

Re: Segfault in haproxy v1.8 with Lua

2018-04-11 Thread Hessam Mirsadeghi
Total: 3 (3 usable), will use epoll. Available filters : [SPOE] spoe [COMP] compression [TRACE] trace Best, Seyed On Wed, Apr 11, 2018 at 5:46 AM, Christopher Faulet wrote: > Le 11/04/2018 à 01:31, Hessam Mirsadeghi a écrit : > >> Hi, >> >> I have a simple Lua http-response

Segfault in haproxy v1.8 with Lua

2018-04-10 Thread Hessam Mirsadeghi
Hi, I have a simple Lua http-response action script that leads to segmentation fault in haproxy. The Lua script is a simple call to txn.res:forward(0). A sample haproxy config and the Lua script files are attached. The backend is simply an nginx instance which responds with 204 No Content. The co