{{Quickfixn}} OnLogout is not called when you pass true in the _initiator.Stop(true)
Grant Birchmeier
gbirchmeier at connamara.com
Fri Feb 24 08:58:35 PST 2012
Created an issue to track:
https://github.com/connamara/quickfixn/issues/45
On Fri, Feb 24, 2012 at 9:38 AM, Rasheed Waraich
<rashiedwaraich at gmail.com>wrote:
> 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
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>
--
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.*
*
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20120224/f29a825b/attachment-0002.htm>
More information about the Quickfixn
mailing list