{{Quickfixn}} OnLogout is not called when you pass true in the _initiator.Stop(true)

Mike Gatny mgatny at connamara.com
Fri Feb 24 07:08:25 PST 2012


On Fri, Feb 24, 2012 at 3:42 AM, Rasheed Waraich
<rashiedwaraich at gmail.com>wrote:

> What is the reason that OnLogout is never called when you pass true in the
> "_initiator.Stop(true);"?
>

This may be a bug.   You should get an OnLogout for a session whenever a
Logout is received on that session, or if the connection is suddenly
disconnected.


> Secondly what is the difference between "_initiator.Stop();" and
> "_initiator.Stop(true);"? Can you please recommend that under what
> use-cases should we use either of them?
>

Calling Initiator.Stop() logs out all sessions, and then waits to ensure
that they are all logged out cleanly.  If you call Initiator.Stop(true),
the initiator will attempt to logout the sessions, but it will not wait to
ensure that it is done cleanly.   You should use Stop() in most cases.
 However, if your application has encountered a fatal error/exception and
you want it to shut down immediately, use Stop(true).

-- 
Mike Gatny
Connamara Systems, LLC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20120224/7eb0c3bf/attachment-0002.htm>


More information about the Quickfixn mailing list