Re: [PATCHES] Cache for larger HTTP objects

2018-10-25 Thread Frederic Lecaille
On 10/24/2018 04:49 AM, Willy Tarreau wrote: Hi Fred, On Tue, Oct 23, 2018 at 02:57:05PM +0200, Frederic Lecaille wrote: Hello ML, Here is a serie of patches to make the cache capable of caching HTTP objects larger than a buffer. The 4th patch add "max-object-size" option to "

[PATCHES] Cache for larger HTTP objects

2018-10-23 Thread Frederic Lecaille
Hello ML, Here is a serie of patches to make the cache capable of caching HTTP objects larger than a buffer. The 4th patch add "max-object-size" option to "cache" section so that to limit the size of the HTTP objects to be cached. Do not hesitate to test them. Regards, Fred. >From

Re: reg-test failures on FreeBSD, how to best adapt/skip some tests?

2018-10-19 Thread Frederic Lecaille
On 10/19/2018 12:43 AM, PiBa-NL wrote: Hi Frederic, Hi Pieter, Do you have a little time to take a look at (the idea of) the script? The idea of the script sounds good to me. About the script itself it is a nice work which could be a good start. Just a few details below. Note that "cat

Re: reg-test failures on FreeBSD, how to best adapt/skip some tests?

2018-10-02 Thread Frederic Lecaille
On 10/01/2018 08:59 PM, PiBa-NL wrote: Hi Frederic, Op 1-10-2018 om 16:09 schreef Frederic Lecaille: - /connection/b0.vtc probably does not 'really' need abns@ sockets, so changing to unix@ would make it testable on more platforms? Correct. I agree I did not think to replace this part

Re: reg-test failures on FreeBSD, how to best adapt/skip some tests?

2018-10-01 Thread Frederic Lecaille
On 09/11/2018 04:51 PM, PiBa-NL wrote: Hi List, I was wondering how to best run the reg-tests that are 'valid' for FreeBSD. There are a 2 tests that use abns@ sockets, which seem not available on FreeBSD. Also 1 test is failing for a reason i'm not totally sure if its totally expected to or

Re: reg-test failures on FreeBSD, how to best adapt/skip some tests?

2018-10-01 Thread Frederic Lecaille
On 09/11/2018 04:51 PM, PiBa-NL wrote: Hi List, Hi, I was wondering how to best run the reg-tests that are 'valid' for FreeBSD. There are a 2 tests that use abns@ sockets, which seem not available on FreeBSD. Also 1 test is failing for a reason i'm not totally sure if its totally

Re: [PATCH] REGTEST/MINOR: loadtest: add a test for connection counters

2018-10-01 Thread Frederic Lecaille
On 09/15/2018 02:03 AM, PiBa-NL wrote: Hi List, Willy, Hi Pieter, Sorry for this late reply. I am also sorry to tell you that -D option should not be used anymore because it as been recently broken. It adds an extra 2s delay on my PC. Without this option, on my PC the test fails but after

Re: [PATCH] REGTEST/MINOR: lua: Add reg testing files for 70d318c.

2018-09-04 Thread Frederic Lecaille
On 09/04/2018 04:01 PM, Frederic Lecaille wrote: Another reg testing file for a LUA bug fixed by 70d318c commit. Fred. The same reg testing file but with indentation fixes. >From 7f01f387563564f1ee5ca718b4ad7562baa599b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L

[PATCH] REGTEST/MINOR: lua: Add reg testing files for 70d318c.

2018-09-04 Thread Frederic Lecaille
Another reg testing file for a LUA bug fixed by 70d318c commit. Fred. >From ff46b36aa4d3ee0213ec0572f9ab3a7261233579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 4 Sep 2018 15:58:14 +0200 Subject: [PATCH] REGTEST/MINOR: lua: Add reg testing files for

Re: [PATCH] REGTEST: stick-tables: Test expiration when used with table_*

2018-08-31 Thread Frederic Lecaille
Hi, I am coming back to this reg testing sent by Daniel which was very interesting because very complete and because there was a little detail to fix. On 06/21/2018 04:53 AM, Willy Tarreau wrote: Hi Daniel, On Wed, Jun 20, 2018 at 10:28:43AM -0400, Daniel Corbett wrote: +shell -expect

[PATCH] BUG/MAJOR: thread: lua: Wrong SSL context initialization.

2018-08-29 Thread Frederic Lecaille
This patch is in relation with one bug reproduced by the reg testing file sent by Pieter in this thread: https://www.mail-archive.com/haproxy@formilux.org/msg31079.html Must be checked by Thierry. Must be backported to 1.8. Note that Pieter reg testing files reg-tests/lua/b2.* come with

Re: lua script, 200% cpu usage with nbthread 3 - haproxy hangs - __spin_lock - HA-Proxy version 1.9-dev1-e3faf02 2018/08/25

2018-08-29 Thread Frederic Lecaille
On 08/28/2018 11:19 AM, Frederic Lecaille wrote: On 08/27/2018 10:46 PM, PiBa-NL wrote: Hi Frederic, Oliver, Hi Pieter, Thanks for your investigations :). I've made a little reg-test (files attached). Its probably not 'correct' to commit as-is, but should be enough to get a reproduction

Re: Haproxy 1.8 segfaults on misconfigured set server fqdn command

2018-08-28 Thread Frederic Lecaille
On 08/14/2018 11:27 AM, Lukas Tribus wrote: Hello, Hi, the "set server / fqdn " admin socket command requires the internal DNS resolver to be configured and enabled for that specific server. This is undocumented, and I will provide a doc fix soon. However, when the resolver is not

Re: lua script, 200% cpu usage with nbthread 3 - haproxy hangs - __spin_lock - HA-Proxy version 1.9-dev1-e3faf02 2018/08/25

2018-08-28 Thread Frederic Lecaille
On 08/27/2018 10:46 PM, PiBa-NL wrote: Hi Frederic, Oliver, Thanks for your investigations :). I've made a little reg-test (files attached). Its probably not 'correct' to commit as-is, but should be enough to get a reproduction.. I hope.. changing it to nbthread 1 makes it work every

Re: lua script, 200% cpu usage with nbthread 3 - haproxy hangs - __spin_lock - HA-Proxy version 1.9-dev1-e3faf02 2018/08/25

2018-08-28 Thread Frederic Lecaille
On 08/27/2018 10:46 PM, PiBa-NL wrote: Hi Frederic, Oliver, Hi Pieter, Thanks for your investigations :). I've made a little reg-test (files attached). Its probably not 'correct' to commit as-is, but should be enough to get a reproduction.. I hope.. changing it to nbthread 1 makes it work

Re: lua script, 200% cpu usage with nbthread 3 - haproxy hangs - __spin_lock - HA-Proxy version 1.9-dev1-e3faf02 2018/08/25

2018-08-27 Thread Frederic Lecaille
On 08/27/2018 03:09 PM, Olivier Houchard wrote: On Mon, Aug 27, 2018 at 02:29:42PM +0200, Frederic Lecaille wrote: On 08/27/2018 01:33 PM, Olivier Houchard wrote: Hi Pieter, On Sat, Aug 25, 2018 at 10:00:04PM +0200, PiBa-NL wrote: Hi List, Thierry, Olivier, Using a lua-socket

Re: lua script, 200% cpu usage with nbthread 3 - haproxy hangs - __spin_lock - HA-Proxy version 1.9-dev1-e3faf02 2018/08/25

2018-08-27 Thread Frederic Lecaille
On 08/27/2018 01:33 PM, Olivier Houchard wrote: Hi Pieter, On Sat, Aug 25, 2018 at 10:00:04PM +0200, PiBa-NL wrote: Hi List, Thierry, Olivier, Using a lua-socket with connect_ssl and haproxy running with nbthread 3.. results in haproxy hanging with 3 threads for me. This while using both

Re: lua script, 200% cpu usage with nbthread 3 - haproxy hangs - __spin_lock - HA-Proxy version 1.9-dev1-e3faf02 2018/08/25

2018-08-27 Thread Frederic Lecaille
On 08/25/2018 10:00 PM, PiBa-NL wrote: Hi List, Thierry, Olivier, Hi, Using a lua-socket with connect_ssl and haproxy running with nbthread 3.. results in haproxy hanging with 3 threads for me. If your configuration is simple do not hesitate to provide it. Perhaps we will be able to write

Re: HTTP/2 issues and segfaults with current 1.9-dev [7ee465]

2018-08-24 Thread Frederic Lecaille
On 08/22/2018 04:32 AM, Willy Tarreau wrote: On Wed, Aug 22, 2018 at 12:46:47AM +0200, Cyril Bonté wrote: Le 22/08/2018 à 00:40, Cyril Bonté a écrit : Hi again Willy, Le 21/08/2018 à 22:55, Cyril Bonté a écrit : Thanks for the diag. I don't remember changing anything around the proxy

Re: [PATCH] BUG/MINOR: lua: Bad HTTP client request duration.

2018-08-24 Thread Frederic Lecaille
On 08/24/2018 08:42 AM, Frederic Lecaille wrote: Here is a patch to fix the issue reported by Patrick in this thread (BUG: Tw is negative with lua sleep https://www.mail-archive.com/haproxy@formilux.org/msg30474.html). Note that I provide a reg testing file to test both HTTP and TCP LUA

[PATCH] BUG/MINOR: lua: Bad HTTP client request duration.

2018-08-24 Thread Frederic Lecaille
Here is a patch to fix the issue reported by Patrick in this thread (BUG: Tw is negative with lua sleep https://www.mail-archive.com/haproxy@formilux.org/msg30474.html). Note that I provide a reg testing file to test both HTTP and TCP LUA applet callbacks used when registering an HTTP or TCP

[PATCH] REGTEST/MINOR

2018-08-23 Thread Frederic Lecaille
Hi ML, Here are two patches for haproxy reg testing. Note that we have recently added an new feature to varnishtest so that to send commands to the CLI without running a shell, socat etc (https://varnish-cache.org/docs/trunk/reference/vtc.html#haproxy). This breaks reg-tests/spoe/h0.vtc

Re: [PATCH 1/1] TMP: Add reg-test to check scoping of txn:get_priv()

2018-08-22 Thread Frederic Lecaille
On 08/22/2018 04:20 PM, Tim Düsterhus wrote: Frederic, Am 22.08.2018 um 15:21 schrieb Frederic Lecaille: Thank you a lot for this reg testing file. Just a little detail (see below). You are correct of course. It was quickly cobbled together to provide a reproducer, not meant for committing

Re: [PATCH 1/1] TMP: Add reg-test to check scoping of txn:get_priv()

2018-08-22 Thread Frederic Lecaille
Hello Tim, Thank you a lot for this reg testing file. Just a little detail (see below). Also note that -run is a shorcut for -start -wait. Regards. On 08/22/2018 02:47 PM, Tim Duesterhus wrote: diff --git a/reg-tests/lua/h1.lua b/reg-tests/lua/h1.lua new file mode 100644 index

Re: Regexp

2018-07-24 Thread Frederic Lecaille
On 07/20/2018 12:03 AM, Aleksandar Lazic wrote: Hi. On 18/07/2018 13:10, Haim Ari wrote: Hello, Trying to set backend by regexp This regexp works outside of haproxy String: /1.0/manage/bu/ca?token=68bf68bf68bf68bf68bf=1212121212=123456789 Regexp:

Re: BUG: Tw is negative with lua sleep

2018-07-18 Thread Frederic Lecaille
Hello Patrick, On 07/17/2018 03:59 PM, Patrick Hemmer wrote: Ping? -Patrick On 2018/6/22 15:10, Patrick Hemmer wrote: When using core.msleep in lua, the %Tw metric is a negative value. For example with the following config: haproxy.cfg:         global             lua-load /tmp/haproxy.lua  

Re: url_param not matching key-only params (also testcases for fetchers)

2018-07-17 Thread Frederic Lecaille
Hello, On 07/16/2018 08:47 PM, Robin H. Johnson wrote: I looked in tests & reg-tests, but didn't see any clear way to add tests for verifying that fetchers work correctly. I think my co-worker found an edge-case on smp_fetch_url_param/smp_fetch_param. Have a look to the attached file to test

[PATCH] REGTEST/MINOR: Unexpected curl URL globling.

2018-07-13 Thread Frederic Lecaille
On 07/12/2018 05:52 PM, Willy Tarreau wrote: On Thu, Jul 12, 2018 at 11:05:30AM +0200, Frederic Lecaille wrote: This is a patch to fix the issue reported by Ilya Shipitsin in this thread. Applied, thank you Fred. Willy Another patch to fix a remaining issue with this boring VTC file

Re: [PATCH] REGTEST/MINOR: Wrong URI syntax.

2018-07-13 Thread Frederic Lecaille
On 07/13/2018 10:17 AM, Илья Шипицин wrote: пт, 13 июл. 2018 г. в 13:08, Frederic Lecaille <mailto:flecai...@haproxy.com>>: On 07/13/2018 09:53 AM, Илья Шипицин wrote: > sorry, I did not test it on centos 7 > > https://gitlab.com/chipitsine/hapro

Re: [PATCH] REGTEST/MINOR: Wrong URI syntax.

2018-07-13 Thread Frederic Lecaille
On 07/13/2018 09:53 AM, Илья Шипицин wrote: sorry, I did not test it on centos 7 https://gitlab.com/chipitsine/haproxy/-/jobs/81501288 (I could not find out what's that, error message is strange, I'll try to investigate on separate vm) чт, 12 июл. 2018 г. в 14:08, Frederic Lecaille

[PATCH] REGTEST/MINOR: Wrong URI syntax.

2018-07-12 Thread Frederic Lecaille
This is a patch to fix the issue reported by Ilya Shipitsin in this thread. Fred. >From 47ca7696d0ccca5989929940db323e9e9255ae4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Thu, 12 Jul 2018 10:48:06 +0200 Subject: [PATCH] REGTEST/MINOR: Wrong URI syntax.

Re: how h1_frt_addr is defined during reg tests?

2018-07-12 Thread Frederic Lecaille
On 07/11/2018 09:12 PM, Илья Шипицин wrote: Hello, I'm playing with reg tests. Sometimes they fail for weird reasons. (for example, fedora 28 on gitlab ci) https://gitlab.com/chipitsine/haproxy/-/jobs/81106855 curl -i -k https://${h1_frt_addr}:${h1_frt_port} became curl -i -k

Re: haproxy tests with sanitizers: bug found ? https://gitlab.com/chipitsine/haproxy/-/jobs/80667862

2018-07-11 Thread Frederic Lecaille
On 07/11/2018 10:41 AM, Frederic Lecaille wrote: On 07/10/2018 01:35 PM, Илья Шипицин wrote: Hello, Hello Ilya, I had an idea, what if we will run reg-tests with various sanitizers ? for example, https://gitlab.com/chipitsine/haproxy/-/jobs/80667862 (gcc + sanitize-address). can someone

[PATCH] BUG/MINOR: thread: log: Log buffers allocated twice by main, thread.

2018-07-11 Thread Frederic Lecaille
This is a patch to fix a very minor bug. But at least it helps in making reg tests with the address sanitizer passes. Fred. >From e75d5fee861d8f3da68238c337512c71d090ac8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 11 Jul 2018 10:31:29 +0200

Re: haproxy tests with sanitizers: bug found ? https://gitlab.com/chipitsine/haproxy/-/jobs/80667862

2018-07-11 Thread Frederic Lecaille
On 07/10/2018 01:35 PM, Илья Шипицин wrote: Hello, Hello Ilya, I had an idea, what if we will run reg-tests with various sanitizers ? for example, https://gitlab.com/chipitsine/haproxy/-/jobs/80667862 (gcc + sanitize-address). can someone confirm a bug there ? I confirm there is a

Re: how to run reg-tests ?

2018-07-10 Thread Frederic Lecaille
On 07/10/2018 12:57 PM, Илья Шипицин wrote: yahoo! green tests https://gitlab.com/chipitsine/haproxy/-/jobs/80660454 Nice :)

Re: how to run reg-tests ?

2018-07-10 Thread Frederic Lecaille
Hi, On 07/10/2018 12:02 PM, Илья Шипицин wrote: I use Fedora 28 if that matters. varnishtest installed from repo (dnf install varnish), it is varnish-5.2.1-4.fc28.x86_64 вт, 10 июл. 2018 г. в 14:58, Илья Шипицин >: HI, I cloned haproxy. built it

Re: [PATCH] REGTEST: stick-tables: Test expiration when used with table_*

2018-06-25 Thread Frederic Lecaille
On 06/21/2018 04:53 AM, Willy Tarreau wrote: Hi Daniel, On Wed, Jun 20, 2018 at 10:28:43AM -0400, Daniel Corbett wrote: +shell -expect "used:0" { +echo "show table http1" |socat ${tmpdir}/h1/stats.sock - ^ This is the point where it will start to

Re: how to run vtc files?

2018-06-21 Thread Frederic Lecaille
On 06/21/2018 04:13 AM, Willy Tarreau wrote: On Wed, Jun 20, 2018 at 04:39:36PM -0400, Daniel Corbett wrote: Hello, On 06/20/2018 03:34 PM, ??? wrote: hi [ilia@localhost haproxy]$ HAPROXY_PROGRAM=./haproxy varnishtest reg-tests/ssl/h0.vtc top   0.0 extmacro def

Re: [PATCH] REGTEST: stick-tables: Test expiration when used with table_*

2018-06-21 Thread Frederic Lecaille
On 06/20/2018 04:28 PM, Daniel Corbett wrote: Hello, Thanks for adding this integration Fred.  Great job! Attached is a new regression test to check for stick-tables expiration when they are used with table_* converters as noted in commit id: 3e60b11100cbc812b77029ca142b83ac7a314db1 Thanks,

Re: [PATCH] MINOR: reg-tests: Add a few regression testing files.

2018-06-20 Thread Frederic Lecaille
On 06/20/2018 10:06 AM, Willy Tarreau wrote: On Wed, Jun 20, 2018 at 09:47:25AM +0200, Frederic Lecaille wrote: Here is a few more reg testing files with a special one for Olivier (see reg-tests/seamless-reload/h0.vtc). Merged, thanks Fred. I think we should start to think about using

[PATCH] MINOR: reg-tests: Add a few regression testing files.

2018-06-20 Thread Frederic Lecaille
On 06/19/2018 10:18 AM, Willy Tarreau wrote: On Mon, Jun 18, 2018 at 07:50:38PM +0200, Frederic Lecaille wrote: Hello, Here is a simple patch to add a Makefile target to run all "*.vtc" regression testing files found in 'reg-tests' directory. (...) Thank you very much for this, Fr

[PATCH] MINOR: reg-tests: Add reg-tests/README file.

2018-06-19 Thread Frederic Lecaille
On 06/19/2018 10:18 AM, Willy Tarreau wrote: On Mon, Jun 18, 2018 at 07:50:38PM +0200, Frederic Lecaille wrote: Hello, Here is a simple patch to add a Makefile target to run all "*.vtc" regression testing files found in 'reg-tests' directory. (...) Thank you very much for this, Fr

[PATCH] MINOR: tests: First regression testing file.

2018-06-18 Thread Frederic Lecaille
Hello, Here is a simple patch to add a Makefile target to run all "*.vtc" regression testing files found in 'reg-tests' directory. It comes with a first VTC file in relation with f874a83 bug fix commit for LUA. This VTC file parent directory is 'reg-tests/lua'. I have copied and pasted the

[PATCH] BUG/MINOR: lua: Segfaults with wrong usage of types.

2018-06-15 Thread Frederic Lecaille
On 06/15/2018 02:28 PM, Frederic Lecaille wrote: On 06/15/2018 02:15 PM, Frederic Lecaille wrote: On 06/14/2018 11:05 PM, Patrick Hemmer wrote: Haproxy segfaults if you pass the wrong argument type to a converter. Example: haproxy.cfg: global     lua-load /tmp/haproxy.lua

Re: BUG: segfault with lua sample converters & wrong arg types

2018-06-15 Thread Frederic Lecaille
On 06/15/2018 02:15 PM, Frederic Lecaille wrote: On 06/14/2018 11:05 PM, Patrick Hemmer wrote: Haproxy segfaults if you pass the wrong argument type to a converter. Example: haproxy.cfg: global     lua-load /tmp/haproxy.lua frontend f1     mode http     bind :8000

Re: BUG: segfault with lua sample converters & wrong arg types

2018-06-15 Thread Frederic Lecaille
On 06/14/2018 11:05 PM, Patrick Hemmer wrote: Haproxy segfaults if you pass the wrong argument type to a converter. Example: haproxy.cfg:     global         lua-load /tmp/haproxy.lua     frontend f1         mode http         bind :8000         default_backend b1         http-request

Re: BUG: segfault with lua sample converters & wrong arg types

2018-06-15 Thread Frederic Lecaille
Hello Patrick, On 06/14/2018 11:05 PM, Patrick Hemmer wrote: Haproxy segfaults if you pass the wrong argument type to a converter. Example: haproxy.cfg:     global         lua-load /tmp/haproxy.lua     frontend f1         mode http         bind :8000         default_backend b1        

Re: regression testing for haproxy

2018-06-11 Thread Frederic Lecaille
On 06/09/2018 09:16 AM, Baptiste wrote: Hi Fred, Hi Baptiste, Amazing work. Looking forward to write some of those :) Yes for now on, *if possible*, it would be great to write a test file for each bug to come. . According to you, would it be compicated to automate tests on the DNS

Re: regression testing for haproxy

2018-06-07 Thread Frederic Lecaille
On 06/07/2018 03:14 PM, Frederic Lecaille wrote: Hi all, We have recently worked in colloboration with Poul-Henning Kamp to use varnishtest regression testing (script driven) tool for Varnish HTTP Cache so that to modify it and make it capable of also test haproxy. Note that here we

regression testing for haproxy

2018-06-07 Thread Frederic Lecaille
Hi all, We have recently worked in colloboration with Poul-Henning Kamp to use varnishtest regression testing (script driven) tool for Varnish HTTP Cache so that to modify it and make it capable of also test haproxy. Note that here we are speaking about *regression* testing which has

Re: haproxy 1.9 status update

2018-05-28 Thread Frederic Lecaille
On 05/25/2018 06:10 PM, Willy Tarreau wrote: Hi all, [sniped] - peers over SSL [Fred] : the purpose is to allow all bind options with peers so that peers can exchange information securely. I think I've seen it posted somewhere, I'll have to dig through the archives. Here are

Re: SSL/TLS support for peers

2018-04-17 Thread Frederic Lecaille
On 04/11/2018 03:10 PM, Frederic Lecaille wrote: Hello ML, This is a first patch attempt to add the SSL/TLS support to peers. So, after having discussed about this feature in private here is a more complete patch to support SSL/TLS over peer protocol. Regards, Fred. >F

cfgparse: multiline parsing

2018-04-17 Thread Frederic Lecaille
Hello ML, Here is a simple patch to support the multiline parsing. Regards, Fred. >From 6ab05b5c9bb8f0a644652ba58376b21ccf800f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 17 Apr 2018 10:54:08 +0200 Subject: [PATCH] MINOR:

SSL/TLS support for peers

2018-04-11 Thread Frederic Lecaille
Hello ML, This is a first patch attempt to add the SSL/TLS support to peers. Everything is detailed in the commit log. This patch is not supposed to be integrated right now because the documentation is missing. Furthermore there are remaining SSL/TLS keywords to be supported which must be

Re: [PATCH] server-template and allowed chars in the name

2018-03-26 Thread Frederic Lecaille
On 03/26/2018 12:00 PM, Thierry Fournier wrote: Hi list, Hi Thierry, The name of the "server" directive allows [A-Za-Z0-9_.:-] (see function invalid_char()). The name allowed for the "server-template" directive only allows [A-Za-Z_.-], the chars [0-9:] disappear. I do not remember if

Re: Aw: Re: [RFC] Wireshark dissector for SPOP

2018-03-14 Thread Frederic Lecaille
Hi Danny, On 03/13/2018 09:05 PM, my.card@web.de wrote: Thanks for your hint, but I couldn't find a good heuristic to distinguish SPOP from TCP. I think, that the current implementation is usable enough for development purposes. Feel free to enhance it. :-) Ok. Do not hesitate to send a

Re: Peer tables don't synch on clear

2018-02-12 Thread Frederic Lecaille
Message- From: Frederic Lecaille [mailto:flecai...@haproxy.com] Sent: 12 February 2018 12:56 To: Franks Andy (IT Technical Architecture Manager); 'haproxy@formilux.org' Subject: Re: Peer tables don't synch on clear On 02/08/2018 11:22 AM, Franks Andy (IT Technical Architecture Manager) wrote: Hi all

Re: Peer tables don't synch on clear

2018-02-12 Thread Frederic Lecaille
On 02/08/2018 11:22 AM, Franks Andy (IT Technical Architecture Manager) wrote: Hi all, Hello Franks,   Haproxy 1.6.13   I’ve checked the documentation again but can’t see an option for this. We sometimes clear backup path server use for individual connections and whilst the peers

Re: [BUG] haproxy 1.8-last/master-worker/peers

2017-11-28 Thread Frederic Lecaille
On 11/28/2017 02:13 PM, Willy Tarreau wrote: On Tue, Nov 28, 2017 at 01:43:52PM +0100, Frederic Lecaille wrote: On 11/28/2017 01:29 PM, Frederic Lecaille wrote: There is a "/* fall through */" between PEER_SESS_ST_CONNECT and PEER_SESS_ST_GETSTATUS cases in peer I/O handler code, so w

Re: [RFC] Wireshark dissector for SPOP

2017-11-28 Thread Frederic Lecaille
On 11/20/2017 10:16 PM, my.card@web.de wrote: Hi Fred, Hi Danny, thanks for looking into this, I've fixed this issue (and introduced some new :-)) The attached dissector code parses all SPOP frames sent from contrib/spoa_sample and haproxy and handles some fragmentation scenarios. Kind

Re: Aw: Re: [RFC] Wireshark dissector for SPOP

2017-11-19 Thread Frederic Lecaille
,   Danny *Gesendet:* Donnerstag, 09. November 2017 um 16:07 Uhr *Von:* "Frederic Lecaille" <flecai...@haproxy.com> *An:* my.card@web.de, haproxy@formilux.org *Betreff:* Re: [RFC] Wireshark dissector for SPOP On 11/05/2017 09:27 AM, my.card@web.de wrote: > Hi all, Hi,

Re: [RFC] Wireshark dissector for SPOP

2017-11-09 Thread Frederic Lecaille
On 11/05/2017 09:27 AM, my.card@web.de wrote: Hi all, Hi, I've implemented a very basic wireshark (https://www.wireshark.org) dissector for SPOP. I've stumbled over the following issue, that I couldn't figure out, yet. ACTION-ARGS should be multiple TYPED-DATA items, but the data sent

Re: Issue with src_http_req_rate count

2017-08-30 Thread Frederic Lecaille
Hello Sikander, Sorry for this late reply. On 08/16/2017 01:24 PM, Sikander Dhaliwal wrote: Dear Support, We are using HA-Proxy version 1.8-dev1-7b67726 on four servers. To handle the DDOS attacks, we have configured sticky-table rules. The issue is, the same configuration is working on 3

Re: Will HAProxy community supports mailers section?

2017-08-24 Thread Frederic Lecaille
On 08/24/2017 03:35 PM, Rajesh Kolli wrote: Hi Daniel, I have changed my config file according to you, even though i am getting the same error. - haproxy.service - HAProxy Load Balancer Loaded: loaded (/usr/lib/systemd/system/haproxy.service; enabled) Active: inactive

Re: [PATCH]: CLEANUP

2017-08-22 Thread Frederic Lecaille
On 07/28/2017 05:23 PM, David CARLIER wrote: Good points :-) sorry for the noise. On 28 July 2017 at 14:07, Willy Tarreau > wrote: Hi David, On Fri, Jul 28, 2017 at 01:58:29PM +0100, David CARLIER wrote: > Hi all, > > Nothing serious, just

server ports - server state file

2017-08-01 Thread Frederic Lecaille
Hello Haproxy ML, Here is a simple patch to add server ports to server state file. Regards, Fred. >From eff80e502338618ea991ecb0fac11fd25dec19b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 1 Aug 2017 08:47:19 +0200 Subject:

peers synchronization issue

2017-07-13 Thread Frederic Lecaille
Hello, I have noticed that when several stick-table backends are attached to several peers sections, only the stick-tables attached to the last peer section could be synchronized ;) . This patch fixes this issue. Regards, Fred. >From 53908a325155836ddb8b0c8a1b8c56e1fa13139d Mon Sep 17

peers - add additional information to stick-table definition message

2017-07-06 Thread Frederic Lecaille
Hello, Here is a simple patch to add remaining information to peer stick-table definition message useful for external applications to discover haproxy peer stick-table configurations. Regards, Fred. >From 733ecc558cc47b9c4d94ef2b316c6e7b3bf067a3 Mon Sep 17 00:00:00 2001 From:

Re: Possible regression in 1.6.12

2017-06-16 Thread Frederic Lecaille
On 06/16/2017 03:20 PM, Willy Tarreau wrote: On Fri, Jun 16, 2017 at 03:10:56PM +0200, Willy Tarreau wrote: Hi Veiko, On Fri, Jun 16, 2017 at 01:41:14PM +0300, Veiko Kukk wrote: So I have more info on this now. Veiko, first, I'm assuming that your config was using "resolvers dns_resolvers" on

Re: BUG: Seg fault when reloading from saved state after config change

2017-06-15 Thread Frederic Lecaille
On 06/14/2017 11:02 PM, Shelley Shostak wrote: Aha. The problem is that the new haproxy.cfg file has hosts that are not in the stat file. If there is no state file, the haproxy.cfg file is perfectly valid. I've attached a self-contained config file and state file that will reproduce the seg

Re: HAProxy won't shut down

2017-06-15 Thread Frederic Lecaille
On 06/14/2017 06:47 PM, Aleksandar Lazic wrote: Hi Frederic & Willy. Hi Aleksandar, As this link is mentioned in the patch https://engineeringblog.yelp.com/2015/04/true-zero-downtime-haproxy-reloads.html yelps new solution for this topic looks interesting.

Re: HAProxy won't shut down

2017-06-14 Thread Frederic Lecaille
On 06/14/2017 01:43 PM, Willy Tarreau wrote: Hi Fred, On Tue, Jun 13, 2017 at 09:16:33PM +0200, Frederic Lecaille wrote: (...) So I have compiled haproxy with the little src/plug_qdisc.c source file (attached to this mail) highly inspired from libnl-utils package sources and managed to make

Re: HAProxy won't shut down

2017-06-14 Thread Frederic Lecaille
On 06/14/2017 08:51 AM, Frederic Lecaille wrote: On 06/13/2017 09:16 PM, Frederic Lecaille wrote: Hello Patrick, [snipped] I hope the pach attached to this mail will definitively fix such peer CLOSE_WAIT issues. A better patch which fixes the comments and commit message. Sorry again

Re: HAProxy won't shut down

2017-06-14 Thread Frederic Lecaille
On 06/13/2017 09:16 PM, Frederic Lecaille wrote: Hello Patrick, [snipped] I hope the pach attached to this mail will definitively fix such peer CLOSE_WAIT issues. A better patch which fixes the comments and commit message. >From 5535bcd5298bbbce11385eee18ef740848d31903 Mon Sep 17 00

Re: HAProxy won't shut down

2017-06-13 Thread Frederic Lecaille
Hello Patrick, Sorry for this late reply. I preferred focusing on how to reproduce your peer CLOSE_WAIT issue. See my answers below. On 05/30/2017 05:29 PM, Patrick Hemmer wrote: On 2017/5/29 16:04, Frederic Lecaille wrote: On 05/29/2017 06:12 PM, Patrick Hemmer wrote: On 2017/5/29 08

Re: HAProxy won't shut down

2017-05-29 Thread Frederic Lecaille
On 05/29/2017 06:12 PM, Patrick Hemmer wrote: On 2017/5/29 08:22, Frederic Lecaille wrote: Hi Patrick, First thank you for this nice and helpful report. Would it be possible to have an output of this command the next time you reproduce such an issue please? echo "show sess&quo

Re: HAProxy won't shut down

2017-05-29 Thread Frederic Lecaille
Hi Patrick, First thank you for this nice and helpful report. Would it be possible to have an output of this command the next time you reproduce such an issue please? echo "show sess" | socat stdio I have only one question (see below). On 05/24/2017 10:40 AM, Willy Tarreau wrote: Hi

Re: Bug: DNS changes in 1.7.3+ break UNIX socket stats in daemon mode with resolvers on FreeBSD

2017-05-12 Thread Frederic Lecaille
On 05/12/2017 09:52 AM, Willy Tarreau wrote: On Fri, May 12, 2017 at 09:48:56AM +0200, Frederic Lecaille wrote: On 05/12/2017 09:37 AM, Willy Tarreau wrote: On Fri, May 12, 2017 at 08:58:56AM +0200, Lukas Tribus wrote: Hi, Am 11.05.2017 um 21:13 schrieb Jim Pingle: On 05/11/2017 01:58 PM

Re: Bug: DNS changes in 1.7.3+ break UNIX socket stats in daemon mode with resolvers on FreeBSD

2017-05-12 Thread Frederic Lecaille
On 05/12/2017 09:37 AM, Willy Tarreau wrote: On Fri, May 12, 2017 at 08:58:56AM +0200, Lukas Tribus wrote: Hi, Am 11.05.2017 um 21:13 schrieb Jim Pingle: On 05/11/2017 01:58 PM, Frederic Lecaille wrote: I have reproduced (at home) the stats socket issue within a FreeBSD 9.3 VM. Replacing

Re: Bug: DNS changes in 1.7.3+ break UNIX socket stats in daemon mode with resolvers on FreeBSD

2017-05-11 Thread Frederic Lecaille
Hi, On 05/11/2017 09:51 AM, Baptiste wrote: Hi Lukas, Thanks a lot! So, after the fork(), HAProxy closes the UDP socket (4) and open a new one (1) as expected, that said, the scheduler still points to the old one. Obviously, this behavior doesn't happen on Linux. socket #4 has been closed()

Re: server FQDN changes from stats socket + server-state file

2017-05-02 Thread Frederic Lecaille
On 05/02/2017 03:45 PM, Baptiste wrote: Here is a new patch version which takes into an account Baptiste remarks. Thank you again Baptiste. Hi Fred, I gave a try to your code today and found a segfault at the next DNS request following the fqdn change. I attached a patch to this

Re: server FQDN changes from stats socket + server-state file

2017-05-02 Thread Frederic Lecaille
On 05/02/2017 03:45 PM, Baptiste wrote: Here is a new patch version which takes into an account Baptiste remarks. Thank you again Baptiste. Hi Fred, Hello Baptiste, I gave a try to your code today and found a segfault at the next DNS request following the fqdn change. I

Re: server FQDN changes from stats socket + server-state file

2017-04-27 Thread Frederic Lecaille
On 04/27/2017 03:20 PM, Frederic Lecaille wrote: On 04/27/2017 02:56 PM, Baptiste wrote: On Thu, Apr 27, 2017 at 2:44 PM, Frederic Lecaille <flecai...@haproxy.com <mailto:flecai...@haproxy.com>> wrote: On 04/27/2017 12:43 PM, Baptiste wrote: On Thu, Apr 27, 2017

Re: server FQDN changes from stats socket + server-state file

2017-04-27 Thread Frederic Lecaille
On 04/27/2017 02:56 PM, Baptiste wrote: On Thu, Apr 27, 2017 at 2:44 PM, Frederic Lecaille <flecai...@haproxy.com <mailto:flecai...@haproxy.com>> wrote: On 04/27/2017 12:43 PM, Baptiste wrote: On Thu, Apr 27, 2017 at 11:22 AM, Frederic Lecaille <flecai

Re: server FQDN changes from stats socket + server-state file

2017-04-27 Thread Frederic Lecaille
On 04/27/2017 12:43 PM, Baptiste wrote: On Thu, Apr 27, 2017 at 11:22 AM, Frederic Lecaille <flecai...@haproxy.com <mailto:flecai...@haproxy.com>> wrote: On 04/27/2017 10:47 AM, Frederic Lecaille wrote: Hello HAProxy ML, Please find attached to this mail a pa

Re: server FQDN changes from stats socket + server-state file

2017-04-27 Thread Frederic Lecaille
On 04/27/2017 10:47 AM, Frederic Lecaille wrote: Hello HAProxy ML, Please find attached to this mail a patch proposal which allows server FQDNs changes from stats socket. These FQDNs are also added to server-state file. Regards, Fred. A new version of this patch which fixes a memleak

server FQDN changes from stats socket + server-state file

2017-04-27 Thread Frederic Lecaille
Hello HAProxy ML, Please find attached to this mail a patch proposal which allows server FQDNs changes from stats socket. These FQDNs are also added to server-state file. Regards, Fred. >From f9c1001175d406a15414e893f11d6120cf22 Mon Sep 17 00:00:00 2001 From:

Re: server templates

2017-04-21 Thread Frederic Lecaille
On 04/21/2017 09:45 AM, Frederic Lecaille wrote: On 04/21/2017 09:15 AM, Jarno Huuskonen wrote: Hi, On Thu, Apr 20, Frederic Lecaille wrote: +server-template [:] [params*] + Set a template for this backend to initialize servers with shared parameters. + This server names are built from

Re: server templates

2017-04-21 Thread Frederic Lecaille
On 04/21/2017 09:15 AM, Jarno Huuskonen wrote: Hi, On Thu, Apr 20, Frederic Lecaille wrote: +server-template [:] [params*] + Set a template for this backend to initialize servers with shared parameters. + This server names are built from and parameters. + May be used in sections

Re: server templates

2017-04-21 Thread Frederic Lecaille
On 04/21/2017 09:15 AM, Jarno Huuskonen wrote: Hi, On Thu, Apr 20, Frederic Lecaille wrote: +server-template [:] [params*] + Set a template for this backend to initialize servers with shared parameters. + This server names are built from and parameters. + May be used in sections

Re: server templates

2017-04-20 Thread Frederic Lecaille
Hello HAProxy ML, On 04/10/2017 05:00 PM, Baptiste wrote: On Mon, Apr 10, 2017 at 2:30 PM, Willy Tarreau <w...@1wt.eu <mailto:w...@1wt.eu>> wrote: On Mon, Apr 10, 2017 at 10:02:29AM +0200, Frederic Lecaille wrote: > With server templates, haproxy could preallocate '

Re: BUG/MINOR : wrong error message during 'default-server' lines

2017-04-16 Thread Frederic Lecaille
On 04/16/2017 05:40 PM, Frederic Lecaille wrote: On 04/15/2017 12:13 AM, Aleksandar Lazic wrote: Hi. Hello Aleksandar, Am 14-04-2017 15:59, schrieb Frederic Lecaille: Hello, This patch fixes a minor bug, a wrong error message during 'usesrc' keyword parsing on 'default-server' lines

Re: BUG/MINOR : wrong error message during 'default-server' lines

2017-04-16 Thread Frederic Lecaille
On 04/15/2017 12:13 AM, Aleksandar Lazic wrote: Hi. Hello Aleksandar, Am 14-04-2017 15:59, schrieb Frederic Lecaille: Hello, This patch fixes a minor bug, a wrong error message during 'usesrc' keyword parsing on 'default-server' lines. 'usesrc' was displayed as unknown if not used after

Re: Propagating agent-check weight change to tracking servers

2017-04-16 Thread Frederic Lecaille
Hello Willy, On 04/15/2017 04:43 PM, Willy Tarreau wrote: On Sat, Apr 15, 2017 at 02:24:41PM +0200, Michal wrote: Hi, Maybe my email wasn't nice enough, but breaking compilation You were the first one to experience the build breakage, it worked for most of us, but you didn't even give the

BUG/MINOR : wrong error message during 'default-server' lines

2017-04-14 Thread Frederic Lecaille
Hello, This patch fixes a minor bug, a wrong error message during 'usesrc' keyword parsing on 'default-server' lines. 'usesrc' was displayed as unknown if not used after 'source' keyword. Regards, Fred >From a9d8045bbc3858607aa0f5d8ab5e1c4c353cce14 Mon Sep 17 00:00:00 2001 From:

Re: Propagating agent-check weight change to tracking servers

2017-04-13 Thread Frederic Lecaille
Hello Michal, On 04/11/2017 04:41 PM, Michał wrote: Hello Willy, So I'm fighting with dba97077 made by Frédéric Lécaille - it broke many things. This patch broke haproxy non-transparent builds. Thanks to Steven Davidovitz, Pavlos Parissis and David Carlier for having promptly helped in

Re: IPv6 resolvers seems not works

2017-04-11 Thread Frederic Lecaille
On 04/10/2017 04:17 PM, Frederic Lecaille wrote: On 04/10/2017 01:42 PM, Павел Знаменский wrote: Hello, Hello, I'm trying to add IPv6 address as a nameserver to able resolve addresses in IPv6-only environment: resolvers google_dns_10m nameserver google_dns1 2001:4860:4860:::53

Re: IPv6 resolvers seems not works

2017-04-10 Thread Frederic Lecaille
On 04/10/2017 01:42 PM, Павел Знаменский wrote: Hello, Hello, I'm trying to add IPv6 address as a nameserver to able resolve addresses in IPv6-only environment: resolvers google_dns_10m nameserver google_dns1 2001:4860:4860:::53 nameserver google_dns2 2001:4860:4860::8844:53

Re: server templates

2017-04-10 Thread Frederic Lecaille
On 04/08/2017 01:27 AM, Aleksandar Lazic wrote: Hi Frederic Hi Aleksandar, Am 07-04-2017 15:00, schrieb Frederic Lecaille: Hello Haproxy ML, Here are patches attached to this mail to add "server templates" feature to haproxy. Please can you explain a little bit more the use ca

<    1   2   3   >