Re: Fix for rare EADDRNOTAVAIL error

2014-02-25 Thread Thomas Mangin
Hello, was it what the kernel change fixes ? http://aleccolocco.blogspot.co.uk/2008/11/ephemeral-ports-problem-and-solution.html Thomas On 23 Feb 2014, at 11:45, Vincent Bernat ber...@luffy.cx wrote: I am too lazy to find the first kernel which works. Looking at the commits, I have found

Re: Fix for rare EADDRNOTAVAIL error

2014-02-23 Thread Vincent Bernat
❦ 22 février 2014 14:55 CET, Willy Tarreau w...@1wt.eu : It depends if you have some servers in common or not. The system will always allow multiple outgoing connections to share the same local source ip:port as long as they don't go to the same destination ip:ports since a connection is

Re: Fix for rare EADDRNOTAVAIL error

2014-02-23 Thread Willy Tarreau
Hi Vincent, On Sun, Feb 23, 2014 at 10:25:18AM +0100, Vincent Bernat wrote: ??? 22 février 2014 14:55 CET, Willy Tarreau w...@1wt.eu : It depends if you have some servers in common or not. The system will always allow multiple outgoing connections to share the same local source ip:port

Re: Fix for rare EADDRNOTAVAIL error

2014-02-23 Thread Vincent Bernat
❦ 23 février 2014 10:31 CET, Willy Tarreau w...@1wt.eu : It depends if you have some servers in common or not. The system will always allow multiple outgoing connections to share the same local source ip:port as long as they don't go to the same destination ip:ports since a connection is

Re: Fix for rare EADDRNOTAVAIL error

2014-02-23 Thread Willy Tarreau
On Sun, Feb 23, 2014 at 12:09:11PM +0100, Vincent Bernat wrote: ??? 23 février 2014 10:31 CET, Willy Tarreau w...@1wt.eu : It depends if you have some servers in common or not. The system will always allow multiple outgoing connections to share the same local source ip:port as long as

Re: Fix for rare EADDRNOTAVAIL error

2014-02-23 Thread Vincent Bernat
❦ 23 février 2014 12:25 CET, Willy Tarreau w...@1wt.eu : I suppose this is in combination with SO_REUSEADDR (otherwise, bind() would fail). It's good to know: tcpESTAB 0 0 192.168.116.1:3754474.125.132.104:80 tcpESTAB 0 0

Re: Fix for rare EADDRNOTAVAIL error

2014-02-22 Thread Willy Tarreau
On Sat, Feb 22, 2014 at 07:54:00PM +0700, Denis Malyshkin wrote: Hi Willy, Thank you a lot for your help. Alternately, you can use the source parameter either on each server or in the backend to fix a port range. Haproxy will then use an explicit bind. This is normally used when you want

Re: Fix for rare EADDRNOTAVAIL error

2014-02-18 Thread Denis Malyshkin
Hi Willy, Thank you a lot for detailed answers. Sorry for so long delay, I have to check docs, configurations and logs. 1. There are no TIME_WAIT connections on our server. They may appear for a very short time, but there are no long-waiting ones. So in that our system works good. OK.

Re: Fix for rare EADDRNOTAVAIL error

2014-02-05 Thread Denis Malyshkin
Hello Willy, Thank you for the explanation and suggestions. I've re-checked logs and connections. 1. There are no TIME_WAIT connections on our server. They may appear for a very short time, but there are no long-waiting ones. So in that our system works good. 2. What is connection retry

Re: Fix for rare EADDRNOTAVAIL error

2014-02-05 Thread Willy Tarreau
Hi Denis, On Thu, Feb 06, 2014 at 12:36:05PM +0700, Denis Malyshkin wrote: Hello Willy, Thank you for the explanation and suggestions. I've re-checked logs and connections. 1. There are no TIME_WAIT connections on our server. They may appear for a very short time, but there are no

Fix for rare EADDRNOTAVAIL error

2014-02-03 Thread Denis Malyshkin
Hello all, We have used haproxy for several months. And periodically see the next error messages in the log: Sep 27 16:17:06 localhost haproxy[12874]: Connect() failed for backend https: no free ports.

Re: Fix for rare EADDRNOTAVAIL error

2014-02-03 Thread Willy Tarreau
Hello Denis, On Tue, Feb 04, 2014 at 12:10:05PM +0700, Denis Malyshkin wrote: Hello all, We have used haproxy for several months. And periodically see the next error messages in the log: Sep 27 16:17:06 localhost