Re: HAProxy 1.5-dev7 attempting to connect to real server port of twice virtual server port

2011-09-23 Thread Nick Chalk
Hello Willy. On 23 September 2011 09:35, Willy Tarreau wrote: > thanks to your diags and detailed reports, I found the bug and I > have the fix. Thanks - that's working for us. Nick. -- Nick Chalk. Loadbalancer.org Ltd. Phone: +44 (0)870 443 8779 http://www.loadbalancer.org/

Re: HAProxy 1.5-dev7 attempting to connect to real server port of twice virtual server port

2011-09-23 Thread Willy Tarreau
Hi Nick, thanks to your diags and detailed reports, I found the bug and I have the fix. We were using the port from the wrong side's address when mapping was used. This explains why the resulting port was twice the incoming one. Since we moved to full-ipv6, we don't need the addr.s/addr.c tricks,

Re: HAProxy 1.5-dev7 attempting to connect to real server port of twice virtual server port

2011-09-22 Thread Nick Chalk
Hello Willy. On 22 September 2011 22:08, Willy Tarreau wrote: > Wow, you've hit an amazing bug. I seem to remember we touched that > area reacently when a server port was ignored. I'll have a look at > this, because it's very likely that we fixed it wrong. Thanks. I had another look at it today,

Re: HAProxy 1.5-dev7 attempting to connect to real server port of twice virtual server port

2011-09-22 Thread Willy Tarreau
Hi Nick, On Wed, Sep 21, 2011 at 11:33:13PM +0100, Nick Chalk wrote: > Hello Brane. > > On 21 September 2011 21:30, Brane F. Gra??nar wrote: > > Try replacing this line with: > > > > server r41 192.168.68.41:80  weight 1 check inter 2000  rise 2 fall 3 > > minconn 0 maxconn 0 > > Yes, explicit

Re: HAProxy 1.5-dev7 attempting to connect to real server port of twice virtual server port

2011-09-21 Thread Nick Chalk
Hello Brane. On 21 September 2011 21:30, Brane F. Gračnar wrote: > Try replacing this line with: > > server r41 192.168.68.41:80  weight 1 check inter 2000  rise 2 fall 3 minconn > 0 maxconn 0 Yes, explicitly specifying the real server port works fine - but that's exercising a different code pa

Re: HAProxy 1.5-dev7 attempting to connect to real server port of twice virtual server port

2011-09-21 Thread Brane F. Gračnar
On Wednesday 21 of September 2011 17:30:05 Nick Chalk wrote: > Afternoon all. > > We have come across an interesting problem with HAProxy 1.5-dev7: with > the config below, the proxy attempts to connect to a real server port > of twice the virtual server's port. > > listen v1 > bind 192.168

HAProxy 1.5-dev7 attempting to connect to real server port of twice virtual server port

2011-09-21 Thread Nick Chalk
Afternoon all. We have come across an interesting problem with HAProxy 1.5-dev7: with the config below, the proxy attempts to connect to a real server port of twice the virtual server's port. listen v1 bind 192.168.69.32:80 mode http balance leastconn server backup