On Tue May 14 21:36:59 2013, ANDK wrote:
Show quoted text> As per subject. Nearly all fails on cpentesters are due to "address
> already in use". If I run four tests in parallel, it is very likely
> that the first one succeeds and the three others fail due to this.
>
> Maybe a much longer grace period woud be sufficient to overcome this
> deficiency or some way of randomization of the port, not sure what is
> easier to implement.
>
> HTH && Thanks && Regards,
Ugh.
I wonder if this is a race at starting up the openssl or socat binaries. The way those work is that they ask the kernel to allocate a port, then close the socket, and ask the binary to use that. It's possible one copy of the script races with another, and probes to find the same free port during the dead time of the first.
I don't know if it's possible to ask openssl or socat to allocate a port and then have it actually *tell me* which port it opened.
Needs some more investigation into those programs...
--
Paul Evans