ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Kearns (JIRA)" <j...@apache.org>
Subject [jira] Created: (ODE-100) ProcessMutex needs to release its socket more quickly
Date Thu, 15 Mar 2007 23:49:09 GMT
ProcessMutex needs to release its socket more quickly

                 Key: ODE-100
                 URL: https://issues.apache.org/jira/browse/ODE-100
             Project: Ode
          Issue Type: Improvement
    Affects Versions: incubator-1
            Reporter: Dan Kearns

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.

Fix: in ProcessMutex.java:lock(), swap:
          ss = new ServerSocket(port);
          ss = new ServerSocket();
          ss.bind(new InetSocketAddress(port));

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message