ProcessMutex needs to release its socket more quickly

Details

Description

On startup, Ode creates a GUID generator. The GUID generator uses posession of a socket at a particular time as a mutex to guarantee the time seed. However, it is using the default socket options to do this, which prevents rapid multiple spinup and/or restart of the processes embedding Ode as the socket is stuck in TIME_WAIT by the operating system.

I've been using the attached GUID class for some time now. It leverages the JDK 5.0 GUID class and uses a thread local counter to eliminate contention. This results in improved performance at the cost of slightly longer GUID's.

Alex Boisvert
added a comment - 16/Mar/07 17:15 I've been using the attached GUID class for some time now. It leverages the JDK 5.0 GUID class and uses a thread local counter to eliminate contention. This results in improved performance at the cost of slightly longer GUID's.