Re: HAProxy 1.5 possible bug

2014-03-05 Thread Fredz Fredz
Hi Lukas, Thanks for replying. Below the information: HA-Proxy version 1.5-dev22-1a34d57 2014/02/03 Copyright 2000-2014 Willy Tarreau Build options : TARGET = linux2628 CPU = generic CC = gcc CFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-s

RE: HAProxy 1.5 possible bug

2014-03-05 Thread Lukas Tribus
Hi, > backend b_catchall > log global > mode http > option httplog > option http-server-close > > #--- speedtest > use-server www.speedtest.net if { hdr_dom(host) -i speedtest } > server www.speedtest.net *:80 This is an unsupported configuration, you cannot specify an asterisk as address. Thi

Re: HAProxy 1.5 possible bug

2014-03-05 Thread Fredz Fredz
Thanks Lukas. But why does it say this here for "server" in the man? Address “0.0.0.0″ or “*” has a special meaning. It indicates that the connection will be forwarded to the same IP address as the one from the client connection. This is useful in transparent proxy architectures where the client’s

RE: HAProxy 1.5 possible bug

2014-03-05 Thread Lukas Tribus
Hi, > Thanks Lukas. But why does it say this here for "server" in the man? > > Address “0.0.0.0″ or “*” has a special meaning. > It indicates that the connection will be forwarded to the same IP > address as the one from the client connection. This is useful in > transparent proxy architectures w

Re: HAProxy 1.5 possible bug

2014-03-05 Thread Fredz Fredz
I understand. Is this something that could be taken up for a future version? Also, what maxconn value do you recommend? Thanks On 5 March 2014 16:11, Lukas Tribus wrote: > Hi, > > >> Thanks Lukas. But why does it say this here for "server" in the man? >> >> Address “0.0.0.0″ or “*” has a specia

RE: possible crashes on linux with recent glibc

2014-03-05 Thread Lukas Tribus
Hi Willy, > Chris Allen and Jeff Zellner reported a similar issue at the same > time on two different versions : 1.4.20 and 1.5-dev17. The symptom > is always the same, haproxy suddenly started to crash under load > while it did not in the past. > > When looking deeper into the traces and core fi

Re: Haproxy 1.4 url redirection issue

2014-03-05 Thread Amol
Hi Neil, I tried something similar, by putting the servername and setting UseCanonicalName On... but what i observe is that when i access my website with just xx.com in the browser, it directs to https://www.xx.com but if i start fresh and access my website with www.xx.com and the next subseque

Redirect path to subdomain

2014-03-05 Thread Manuel de Brito Fontes
It’s possible to redirect this www.domain.com/demo(.*) to demo.domain.com\1 without using url_beg for each case? Thanks

RE: HAProxy 1.5 possible bug

2014-03-05 Thread Lukas Tribus
Hi, > I understand. Is this something that could be taken up for a > future version? Not a trivial thing todo. I think an internal resolver implementation in haproxy would be needed, as gethostbyname() and friends are blocking (nginx has its own resolver for example). I don't think there are us

Re: Haproxy 1.4 url redirection issue

2014-03-05 Thread Amol
so after looking at haproxy logs i noticed 2 things if i type www.xx.com there is 1 log entry haproxy[26387]: xx.11.11.118:62704 [05/Mar/2014:22:48:02.264] http-in if-https/if1-app 10734/0/0/403/11137 200 10448 - - --VN 20/20/3/1/0 0/0 "GET / HTTP/1.1" but when i type xx.com i see 2 log entri

Re: Haproxy now logs CL for clients that reset the connection after completion?

2014-03-05 Thread Willy Tarreau
Hi Finn Arne, On Tue, Feb 25, 2014 at 03:17:24PM +0100, Finn Arne Gangstad wrote: > Slowly upgrading some load balancers with the latest snapshots, and we get > a lot of CL entries in our logs, this caused some people to get a bit > scared. > > Typical tcp dump: > > 13:58:55.161381 IP x.x.x.x.39

Re: weights

2014-03-05 Thread Willy Tarreau
Hi Malcolm, On Tue, Mar 04, 2014 at 08:43:47PM +, Malcolm Turnbull wrote: > Willy, > > Exactly right, but it is a common misunderstanding. > > Out of interest, How hard would it be to get a least connection > scheduler to take account of cumulated connections? It also uses them slightly bec

Re: reqrep with a match/backref into Host: header?

2014-03-05 Thread Willy Tarreau
On Fri, Feb 28, 2014 at 01:54:52PM +0100, Baptiste wrote: > Hi Philipp, > > You can't do this in current HAProxy. > That said, it may happen soon, since the you can already use some > header values in the http-request rules: > IE: > http-request redirect code 301 location www.%[hdr(host)]%[req.uri

Re: possible crashes on linux with recent glibc

2014-03-05 Thread Willy Tarreau
Hi Lukas, On Wed, Mar 05, 2014 at 07:38:42PM +0100, Lukas Tribus wrote: > Hi Willy, > > > > Chris Allen and Jeff Zellner reported a similar issue at the same > > time on two different versions : 1.4.20 and 1.5-dev17. The symptom > > is always the same, haproxy suddenly started to crash under loa

Re: HAProxy 1.5 possible bug

2014-03-05 Thread Willy Tarreau
Hi, On Thu, Mar 06, 2014 at 01:31:33AM +0100, Lukas Tribus wrote: > Hi, > > > > I understand. Is this something that could be taken up for a > > future version? > > Not a trivial thing todo. I think an internal resolver implementation > in haproxy would be needed, as gethostbyname() and friends

Re: haproxy loosing connections

2014-03-05 Thread Willy Tarreau
Hello Alexey, On Tue, Mar 04, 2014 at 10:27:42PM +0700, Alexey Medvedchikov wrote: > Hello, > > I'm maintain postgresql cluster with streaming replication for php-based > webapp. And for a few days I'm trying to get rid of errors in my setup: > >Application serverDB server >