Re: core.sleep() ignores param and sleeps for 10 seconds in response action

2017-11-10 Thread Nick Dimov
thank you for the explanation. On 10.11.2017 19:28, Willy Tarreau wrote: > On Fri, Nov 10, 2017 at 07:05:39PM +0200, Nick Dimov wrote: >> For example, I use a backend like this >> >>> backend b_http_hosts >>>     mode http >>> >>>     server s_web1  server:80 maxconn 10 check >> And I'm testing

Re: core.sleep() ignores param and sleeps for 10 seconds in response action

2017-11-10 Thread Willy Tarreau
On Fri, Nov 10, 2017 at 07:05:39PM +0200, Nick Dimov wrote: > For example, I use a backend like this > > > backend b_http_hosts > >     mode http > > > >     server s_web1  server:80 maxconn 10 check > > And I'm testing with wrk -c 20 and checking the established connections > from haproxy to

Re: core.sleep() ignores param and sleeps for 10 seconds in response action

2017-11-10 Thread Nick Dimov
Hi again, Since I'm still on this, I'm having another possible issue with haproxy. The documentation states: > When a server has a > "maxconn" > parameter specified, it means that its number > of concurrent connections *will never

Re: core.sleep() ignores param and sleeps for 10 seconds in response action

2017-11-10 Thread Willy Tarreau
On Fri, Nov 10, 2017 at 06:43:42PM +0200, Nick Dimov wrote: > Hello, > > The patch works great. I tested on 1.8 and 1.7 and both are working good > now. thanks for confirming! Willy

Re: core.sleep() ignores param and sleeps for 10 seconds in response action

2017-11-10 Thread Nick Dimov
Hello, The patch works great. I tested on 1.8 and 1.7 and both are working good now. Thanks a lot! On 10.11.2017 18:20, Willy Tarreau wrote: > Hello Nick, > > On Fri, Nov 10, 2017 at 04:50:37PM +0200, Nick Dimov wrote: >> Hello, everyone. >> >> I am encountering a problem with LUA in haproxy,

Re: core.sleep() ignores param and sleeps for 10 seconds in response action

2017-11-10 Thread Willy Tarreau
Hello Nick, On Fri, Nov 10, 2017 at 04:50:37PM +0200, Nick Dimov wrote: > Hello, everyone. > > I am encountering a problem with LUA in haproxy, I also reported it here > https://github.com/sflow/haproxy/issues/2 but the problem is lieke this: > > When using a response action, this function -

core.sleep() ignores param and sleeps for 10 seconds in response action

2017-11-10 Thread Nick Dimov
Hello, everyone. I am encountering a problem with LUA in haproxy, I also reported it here https://github.com/sflow/haproxy/issues/2 but the problem is lieke this: When using a response action, this function - sleeps for 10 seconds, no matter what param i pass to it. Also it seems that the wait