OK so let's make this experience that you already have as a public resource.. This way more then just you will have the option to look at it and understand the real and the main issue. on what OS again this test was done? I will compare couple of them to make sure what kernel are we talking about... Eliezer On 09/14/2013 10:13 PM, Nikolai Gorchilov wrote: > On Sat, Sep 14, 2013 at 9:36 PM, Eliezer Croitoru <eliezer@xxxxxxxxxxxx> wrote: >> Hey, >> >> it can be tested in a matter of minutes. >> If we have some test candidate I will write a small tproxy script to >> verify the suspect. > > The pseudo code I have provided is based on my real-world experiment. > I did the test myself, before posting my findings here. > > Let's focus our attention on how to overcome the issue. The only > working application-level solution suggested till now is to select a > random port before bind and retry on EADDRINUSE with another port. > > Any other ideas? >