I tried SO_REUSEADDR on an earlier attempt, that didn't work either,
that was a hack too.
The 4 minute retry is just a temporary hack to see if the port is
released, it wasn't.
The real fix will is to have the client close the port, rather than the
server, but since I don't have direct access to this box, I can't really
tell if that's the actual problem or if those ports aren't available at all.
Peter.
On 22/11/2012 6:42 PM, Simon IJskes - QCG wrote:
On 22-11-12 07:45, [email protected] wrote:
+ try {
+ Thread.sleep(240000); // Wait 4 minutes for
TCP 2MSL TIME_WAIT
Peter,
could you please try to explain why you are removing SO_REUSEADDR and
introducing this wait-retry?
Please speculate about the potential bug you think there is.
Is it a desperate attempt? Or have you found a solid theory behind it?
Gr. Simon