Re: Why maxconn value can have a negative value?

2018-04-02 Thread Tim Düsterhus
Willy, Am 02.04.2018 um 16:46 schrieb Willy Tarreau: Very likely not, I think that maxconn is 0 when not set, so most likely it's a leftover from old code. I don't feel confident touching these members (there's also a few more which probably should be unified). If you decide to take a look a

Re: Why maxconn value can have a negative value?

2018-04-02 Thread Willy Tarreau
Hi Tim, On Mon, Apr 02, 2018 at 04:38:30PM +0200, Tim Düsterhus wrote: > Nikhil, > > Am 26.03.2018 um 08:07 schrieb Nikhil Kapoor: > > Above output shows that maxconn value is "4294967295" which is taken > > randomly. > > This is not random. What you are seeing is unsigned integer wrap around.

Re: Why maxconn value can have a negative value?

2018-04-02 Thread Tim Düsterhus
Nikhil, Am 26.03.2018 um 08:07 schrieb Nikhil Kapoor: Above output shows that maxconn value is "4294967295" which is taken randomly. This is not random. What you are seeing is unsigned integer wrap around. It's 4294967296 (2^32) added to your negative argument. Is this a bug? If not then w

Why maxconn value can have a negative value?

2018-03-25 Thread Nikhil Kapoor
Hi, When negative value is given for maxconn(-1,-2...-9, 10.) parameter in global section of haproxy.cfg. It is observed that haproxy service starts with successful health check up of backend servers. But when larger negative value is given then haproxy fails to start and Alert message is shown