[QFJ-674] acceptor.getSessions() returning empty ArrayList Created: 25/Apr/12 Updated: 02/Aug/12 Resolved: 02/Aug/12 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | Engine |
Affects Version/s: | 1.5.2 |
Fix Version/s: | None |
Type: | Bug | Priority: | Major |
Reporter: | Dan Marques | Assignee: | Unassigned |
Resolution: | Not a bug | Votes: | 0 |
Labels: | None | ||
Environment: |
Java 7, Windows 7 - x64 |
Description |
In QFJ 1.5.2 acceptor.getSessions() is returning an empty array list when previous version (at least 1.4.0, but I'm pretty sure this was working in 1.5.1 as well) are returning non-empty lists. For example, the following little code segment (as part of an application) Acceptor acceptor = null; given the same config file (describing two acceptor sessions), produces different output with 1.5.2 than with 1.4.0 DropCopy 20:06:55,087 INFO [main] (DropCopy.java:285) - version Version: 1.5.2, size 0 |
Comments |
Comment by Christoph John [ 25/Apr/12 ] |
The call to createSessions() has been moved into the method startAcceptingConnections() of the AbstractSocketAcceptor to ensure that the acceptor can be restarted after a call to stop() ( I.e. after call to SocketAcceptor.start() you should be able to get the sessions. |