Can't really say that I follow all that but if it's a way to allocate a random socket and have retries on the event of it being already taken, I'd say it's a lot of code for something the OS should be allowed to handle. I would probably just avoid the cluster thingy altogether...