Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-100

ProcessMutex needs to release its socket more quickly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-incubating
    • 1.0-incubating
    • None
    • None

    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.

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

      Attachments

        1. GUID.java
          3 kB
          Alex Boisvert

        Activity

          People

            mriou Matthieu Riou
            dan.kearns Dan Kearns
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: