{{Quickfixn}} how to clear Session.sessions_ ?

Joseph Lam joseph.lam at orbis.com
Sun Feb 23 20:41:48 PST 2014


Hi

In my own unit tests, the Session.Lookup() would return sessions that were constructed programmatically from earlier tests in the same run, causing interference. Looking at the source code I can't seem to find where/how the underlying Session.sessions_ dictionary gets cleaned up. Should there be a Session.Remove(SessionId) or Session.Clear() of some sort?

Also, in a run of unit tests where there are many sessions with different IDs created, wouldn't this cause unnecessary memory usage build up? And in production, decommissioning a counter-party relationship will still leave behind the Session object on the server unless the whole application is restarted.

Regards,
Joseph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20140224/c5b4cf44/attachment.htm>


More information about the Quickfixn mailing list