[ANNOUNCE] haproxy-2.5.6

2022-04-26 Thread Christopher Faulet
Hi, HAProxy 2.5.6 was released on 2022/04/26. It added 86 new commits after version 2.5.5. As usual, several bugs were fixed in this release: * An internal issue leading to truncated messages. When data were mixed with an error report, connection errors could be handled too early by the

Re: Stupid question about nbthread and maxconn

2022-04-26 Thread Lukas Tribus
Hello, > > Let's say we have the following setup. > > > > ``` > > maxconn 2 > > nbthread 4 > > ``` > > > > My understanding is that HAProxy will accept 2 concurrent connection, > > right? Even when I increase the nbthread will HAProxy *NOT* accept more then > > 2 concurrent

Learning from Spam (was: Re: Social media marketing Plans from Scratch haproxy.org)

2022-04-26 Thread Aleksandar Lazic
Hi, On Tue, 26 Apr 2022 03:32:16 -0700 Ivana Paul wrote: > Hello haproxy.org [SPAM Content] New Idea for spam "learning platform" :-) I never heard anything about "SMO services" and now I know it's this. Social Media Optimization (SMO) Services Regard Alex

Set environment variables

2022-04-26 Thread Valerio Pachera
Hi, I have several backend configuration that make use of a custom script: external-check command 'custom-script.sh' The script read uses the environment variables such as $HAPROXY_PROXY_NAME. I would like to be able to set and environment variable in the backend declaration, before running the

Social media marketing Plans from Scratch haproxy.org

2022-04-26 Thread Ivana Paul
Hello haproxy.org Hope you know how engaging Social Media Platforms like Facebook, Instagram, Twitter, etc. are these days. We help you find the right audience and provide exposure for your services while managing a consistent plan of communication for your business. You reach the right people

Re: Set environment variables

2022-04-26 Thread Aleksandar Lazic
On Tue, 26 Apr 2022 15:03:51 +0200 Valerio Pachera wrote: > Hi, I have several backend configuration that make use of a custom script: > > external-check command 'custom-script.sh' > > The script read uses the environment variables such as $HAPROXY_PROXY_NAME. > I would like to be able to set

Re: Stupid question about nbthread and maxconn

2022-04-26 Thread Aleksandar Lazic
Hi. Anyone any Idea about the question below? Regards Alex On Sat, 23 Apr 2022 11:05:36 +0200 Aleksandar Lazic wrote: > Hi. > > I'm not sure if I understand the doc properly. > > https://docs.haproxy.org/2.2/configuration.html#nbthread > ``` > This setting is only available when support for

Re: [PATCH] BUG/MINOR: Fix memory leak in resolvers_deinit()

2022-04-26 Thread Willy Tarreau
On Tue, Apr 26, 2022 at 11:28:47PM +0200, Tim Duesterhus wrote: > A config like the following: > > global > stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd > listeners > > resolvers unbound > nameserver unbound 127.0.0.1:53 > > will report the following

[PATCH] BUG/MINOR: Fix memory leak in resolvers_deinit()

2022-04-26 Thread Tim Duesterhus
A config like the following: global stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners resolvers unbound nameserver unbound 127.0.0.1:53 will report the following leak when running a configuration check: ==241882== 6,991 (6,952 direct, 39

Re: [PATCH] CLEANUP: Destroy `http_err_chunks` members during deinit

2022-04-26 Thread Willy Tarreau
Hi Tim, On Tue, Apr 26, 2022 at 11:35:07PM +0200, Tim Duesterhus wrote: > To make the deinit function a proper inverse of the init function we need to > free the `http_err_chunks`: > > ==252081== 311,296 bytes in 19 blocks are still reachable in loss record > 50 of 50 > ==252081==at

[PATCH] CLEANUP: Destroy `http_err_chunks` members during deinit

2022-04-26 Thread Tim Duesterhus
To make the deinit function a proper inverse of the init function we need to free the `http_err_chunks`: ==252081== 311,296 bytes in 19 blocks are still reachable in loss record 50 of 50 ==252081==at 0x483B7F3: malloc (in

[PATCH] MINOR: Call deinit_and_exit(0) for `haproxy -vv`

2022-04-26 Thread Tim Duesterhus
It appears that it is safe to call perform a clean deinit at this point, so let's do this to exercise the deinit paths some more. Running `valgrind --leak-check=full --show-leak-kinds=all ./haproxy -vv` with this change reports: ==261864== HEAP SUMMARY: ==261864== in use at exit: 344

Re: [PATCH] MINOR: Call deinit_and_exit(0) for `haproxy -vv`

2022-04-26 Thread Willy Tarreau
On Wed, Apr 27, 2022 at 12:08:11AM +0200, Tim Duesterhus wrote: > It appears that it is safe to call perform a clean deinit at this point, so > let's do this to exercise the deinit paths some more. OK let's try. If there were any issue with this, we could easily revert it without impact anyway.