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

Rasheed Waraich rashiedwaraich at gmail.com
Fri Feb 24 07:38:19 PST 2012


Thanks Mike, makes sense.

Then first one is bug because I don't get logout event if I use
Stop(true)...

On Fri, Feb 24, 2012 at 4:08 PM, Mike Gatny <mgatny at connamara.com> wrote:

> 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
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>


-- 
//Regards
Rasheed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20120224/6a3b82ef/attachment-0002.htm>


More information about the Quickfixn mailing list