Re: [PATCH] [MEDIUM] Improve "no free ports" error case

2017-03-15 Thread Krishna Kumar (Engineering)
Hi Willy, I am facing one problem with using system port range, Distro: Ubuntu 16.04.1, kernel: 4.4.0-53-generic When I set to 5 to 50999, the kernel allocates port in the range 5 to 50499, the remaining 500 ports do not seem to ever get allocated despite running a few thousand

Re: [PATCH] [MEDIUM] Improve "no free ports" error case

2017-03-09 Thread Krishna Kumar (Engineering)
Hi Willy, Excellent, I will try this idea, it should definitely help! Thanks for the explanations. Regards, - Krishna On Thu, Mar 9, 2017 at 1:37 PM, Willy Tarreau wrote: > On Thu, Mar 09, 2017 at 12:50:16PM +0530, Krishna Kumar (Engineering) > wrote: > > 1. About 'retries', I

Re: [PATCH] [MEDIUM] Improve "no free ports" error case

2017-03-09 Thread Willy Tarreau
On Thu, Mar 09, 2017 at 12:50:16PM +0530, Krishna Kumar (Engineering) wrote: > 1. About 'retries', I am not sure if it works for connect() failing > synchronously on the > local system (as opposed to getting a timeout/refused via callback). Yes it normally does. I've been using it for the same

Re: [PATCH] [MEDIUM] Improve "no free ports" error case

2017-03-08 Thread Krishna Kumar (Engineering)
Hi Willy, Thanks for your comments. 1. About 'retries', I am not sure if it works for connect() failing synchronously on the local system (as opposed to getting a timeout/refused via callback). The document on retries says: " is the number of times a connection attempt should be retried on

Re: [PATCH] [MEDIUM] Improve "no free ports" error case

2017-03-08 Thread Willy Tarreau
Hi Krishna, On Thu, Mar 09, 2017 at 12:03:19PM +0530, Krishna Kumar (Engineering) wrote: > Hi Willy, > > We use HAProxy as a Forward Proxy (I know this is not the intended > application for HAProxy) to access outside world from within the DC, and > this requires setting a source port range for