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

Unable to restart a stopped initiator (SocketInitator)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.4.0
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Windows XP
      Java 1.6.0_07

      Description

      The SocketInitator has a start and stop method that imply that it can be started/stopped/restarted. However, you can only start the Initiator once as the fact that it has been started is tracked by whether or not it has been initialized.

      AbstractSocketInitiator.initiateSessions initializes the sessions and starts the sessionTimers.
      SocketInitializer.initialize controls the flag of whether the initiator is initialized or not. An initialized initializer implies it has been started.
      SocketInitializer.stop stops the sessionTimer and does not reset the initialized flag (which it shouldn't)

      There are two different states that need to be tracked of an initializer.
      1. whether or not it has been initialized (already tracked)
      2. whether or not it has been started (implied by being initialized and needs to have its own flag).

      As it stands, the only way to restart a SocketInitializer is to create an new instance and start it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mvfranz Michael Franz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: