Re: [PATCH] MEDIUM: proxy_protocol: Send IPv4 addresses when possible

2018-07-17 Thread Willy Tarreau
Hi! On Tue, Jul 17, 2018 at 01:39:38PM +0200, Lukas Tribus wrote: > Hello Tim, > > > On Fri, 29 Jun 2018 at 21:00, Tim Duesterhus wrote: > > > > This patch changes the sending side of proxy protocol to convert IP > > addresses to IPv4 when possible (and converts them IPv6 otherwise). > > > > Pr

Re: Building HAProxy 1.8 fails on Solaris

2018-07-17 Thread Thrawn
Mea culpa, I applied the patch incorrectly. After fixing that, I can successfully build with 'USE_THREAD=' but without 'USE_PTHREAD_PSHARED=yes' (although from what Olivier said, I probably shouldn't do that). On Wednesday, 18 July 2018, 12:10:57 pm AEST, Thrawn wrote: We always clean

Re: Building HAProxy 1.8 fails on Solaris

2018-07-17 Thread Thrawn
We always clean before building. The shell script I use is currently: MAKE=/usr/sfw/bin/gmake$MAKE clean$MAKE USE_STATIC_PCRE=1 ARCH=native TARGET=solaris PCREDIR=../pcre USE_THREAD= USE_PTHREAD_PSHARED=yes And after applying the patch (and USE_PTHREAD_PSHARED=yes as you can see), that builds s

Re: Setting up per-domain logging with haproxy

2018-07-17 Thread Shawn Heisey
On 7/17/2018 2:17 PM, Jonathan Matthews wrote: > That's *entirely* your local syslog daemon's responsibility - > configure it appropriately, and it'll do what you want. I seem to remember there being logging options to have haproxy create logfiles directly, in addition to syslog. But now when I l

Re: Setting up per-domain logging with haproxy

2018-07-17 Thread Jonathan Matthews
Hey Shawn, On 17 July 2018 at 19:59, Shawn Heisey wrote: [snip] > Can haproxy be configured to create multiple logfiles? Can the filename > of each log be controlled easily in the haproxy config? Can I use > dynamic info for the logfile name like the value in the Host header? Haproxy has absol

Setting up per-domain logging with haproxy

2018-07-17 Thread Shawn Heisey
I have a setup that works like this: internet->haproxy->apache->tomcat I have been doing some experiments where the apache server is skipped, and traffic goes directly from haproxy to tomcat. These experiments have gone very well. Removing Apache from the mix would simplify things greatly. I h

Re: haproxy 1.8.12 / 1.9- 20180623 / stopping process hangs with threads (100% cpu) on -sf reload / FreeBSD

2018-07-17 Thread PiBa-NL
Hi Christopher, Op 17-7-2018 om 10:09 schreef Christopher Faulet: Could you try to revert the following commit please ?  * ba86c6c25 MINOR: threads: Be sure to remove threads from all_threads_mask on exit Without this specific commit the termination of the old process works 'properly'. That

Re: Building HAProxy 1.8 fails on Solaris

2018-07-17 Thread Olivier Houchard
Hi again, On Tue, Jul 17, 2018 at 01:55:33PM +0200, Olivier Houchard wrote: > Hi Lukas, > > On Tue, Jul 17, 2018 at 01:08:39PM +0200, Lukas Tribus wrote: > > On Tue, 17 Jul 2018 at 01:09, Thrawn > > wrote: > > > > > > Ah, indeed, the GCC version provided on our server is 3.4.3. But the > > > r

Re: BUG: Tw is negative with lua sleep

2018-07-17 Thread Patrick Hemmer
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 > > frontend f1 > mode http >

Re: Bug when passing variable to mapping function

2018-07-17 Thread Emeric Brun
Hi Jarno, and thanks Lukas On 07/16/2018 07:27 AM, Lukas Tribus wrote: > Hello, > > > > On Fri, 29 Jun 2018 at 07:15, Jarno Huuskonen wrote: >> >> Hi, >> >> On Thu, Jun 28, Jarno Huuskonen wrote: >>> I think this is the commit that breaks map_regm in this case: >>> b5997f740b21ebb197e10a0f2fe9

Re: Building HAProxy 1.8 fails on Solaris

2018-07-17 Thread Olivier Houchard
Hi Lukas, On Tue, Jul 17, 2018 at 01:08:39PM +0200, Lukas Tribus wrote: > On Tue, 17 Jul 2018 at 01:09, Thrawn wrote: > > > > Ah, indeed, the GCC version provided on our server is 3.4.3. But the readme > > on https://github.com/haproxy/haproxy says "GCC between 2.95 and 4.8". Can > > the build

Re: SSL: double free on reload

2018-07-17 Thread Thierry Fournier
On Tue, 17 Jul 2018 10:10:58 +0200 Willy Tarreau wrote: > Hi again Nenad, > > On Tue, Jul 17, 2018 at 05:18:45AM +0200, Willy Tarreau wrote: > > Hi Nenad, > > > > On Tue, Jul 17, 2018 at 03:37:37AM +0200, Nenad Merdanovic wrote: > > > Ugh, this was a long time ago. [FROM MEMORY] The element sho

Re: [PATCH] MEDIUM: proxy_protocol: Send IPv4 addresses when possible

2018-07-17 Thread Lukas Tribus
Hello Tim, On Fri, 29 Jun 2018 at 21:00, Tim Duesterhus wrote: > > This patch changes the sending side of proxy protocol to convert IP > addresses to IPv4 when possible (and converts them IPv6 otherwise). > > Previously the code failed to properly provide information under > certain circumstance

Re: [PATCH] MEDIUM: proxy_protocol: Send IPv4 addresses when possible

2018-07-17 Thread Tim Düsterhus
Willy, Am 29.06.2018 um 20:59 schrieb Tim Duesterhus: > This patch changes the sending side of proxy protocol to convert IP > addresses to IPv4 when possible (and converts them IPv6 otherwise). > > Previously the code failed to properly provide information under > certain circumstances: > > 1. h

Re: Building HAProxy 1.8 fails on Solaris

2018-07-17 Thread Lukas Tribus
On Tue, 17 Jul 2018 at 01:09, Thrawn wrote: > > Ah, indeed, the GCC version provided on our server is 3.4.3. But the readme > on https://github.com/haproxy/haproxy says "GCC between 2.95 and 4.8". Can > the build be changed to continue supporting older GCC, or do the docs need an > update? Lik

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

How to redirect with RegEx by using a found pattern in destination

2018-07-17 Thread Jürgen Haas
Hi all, tried several thing over the last couple of weeks and almost got there, but now SSL connections are failing. Hope somebody can help me the get the last piece working too. Redirecting requests to files like `/some/path/some-name-EN-UK.pdf` to `/EN-UK/some-sub-path` where `EN-UK` is a varia

Re: SSL: double free on reload

2018-07-17 Thread Willy Tarreau
Hi again Nenad, On Tue, Jul 17, 2018 at 05:18:45AM +0200, Willy Tarreau wrote: > Hi Nenad, > > On Tue, Jul 17, 2018 at 03:37:37AM +0200, Nenad Merdanovic wrote: > > Ugh, this was a long time ago. [FROM MEMORY] The element should not be > > duplicated as far as I can remember. The references are s

Re: haproxy 1.8.12 / 1.9- 20180623 / stopping process hangs with threads (100% cpu) on -sf reload / FreeBSD

2018-07-17 Thread Christopher Faulet
Le 17/07/2018 à 01:08, PiBa-NL a écrit : Hi List, With a build of 1.8.12 (and the 1.9 snapshot of 20180623 ) im getting the 'old' haproxy process take up 100% cpu usage when using 3 threads in the config and reloading with -sf parameter. I'm using FreeBSD.. (It also happens with the 14-7 snap