Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-643

Unable to restart a stopped acceptor (SocketAcceptor)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0, 1.5.1
    • Fix Version/s: 1.5.2
    • Component/s: Engine
    • Labels:
      None

      Description

      This is a similar issue as in QFJ-348 but for acceptors.

      When I do acceptor.start() QF/J says:

      Listening for connections at 0.0.0.0/0.0.0.0:10040
      

      netstat output:

      tcp6       0      0 :::10040                :::*                    LISTEN
      

      After a stop() and another start(), the acceptor does not print the usual "Listening... at" information and also the netstat output is not listing the port.

      A workaround could be to re-create the acceptor. But this is somewhat unexpected since we have start() and stop() methods.

      If I interpret the code in the SocketAcceptor.class correctly, all that is needed is to set the "isStarted" flag to FALSE again on a stop(). This would trigger the call of the method "startAcceptingConnections()" on the next start() call. Could someone with more insight into the code please comment on this?

      Thanks in advance,
      Chris.

        Attachments

          Activity

            People

            • Assignee:
              chrjohn Christoph John
              Reporter:
              chrjohn Christoph John
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: