[QFJ-348] Unable to restart a stopped initiator (SocketInitator) Created: 08/Sep/08  Updated: 11/Feb/09  Resolved: 06/Oct/08

Status: Closed
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.3.1
Fix Version/s: 1.4.0

Type: Bug Priority: Default
Reporter: Michael Franz Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Environment:

Windows XP
Java 1.6.0_07


Issue Links:
Duplicate
is duplicated by QFJ-354 Support restart after initiator stop Closed

 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.



 Comments   
Comment by Steve Bate [ 06/Oct/08 ]

I accidentally created a duplicate issue for this feature. The SVN commits are keyed off the duplicate issue ID so I'll leave it in the system.

Generated at Fri May 10 10:06:26 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.