<div dir="ltr"><div class="gmail_default" style="font-size:small">You may be right. I doubt that this would take up enough memory to cause a real issue, but technically I think you are correct.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Feb 23, 2014 at 10:41 PM, Joseph Lam <span dir="ltr"><<a href="mailto:joseph.lam@orbis.com" target="_blank">joseph.lam@orbis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hi<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal">Joseph<u></u><u></u></p>
</div>
</div>
<br>_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font><font color="#3333ff"><br>
</font></font></div><div><font><b><font color="#3333ff"><span style="background-color:#ffcc33"><span style="background-color:#ffcc66"><span style="background-color:#ffcc99"><span style="background-color:#ffffff"><span style="background-color:#ffcc00">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br>
</div><div><font><b>Made-To-Measure Trading Solutions.</b></font></div><div><font>Exactly what you need. No more. No less.</font><font><b><font color="#3333ff"><br></font></b></font></div><div><font><a href="http://connamara.com" target="_blank">http://connamara.com</a><br>
</font></div>
</div></div>