{{Quickfixn}} OnLogout is not called when you pass true in the _initiator.Stop(true)
Rasheed Waraich
rashiedwaraich at gmail.com
Fri Feb 24 09:24:46 PST 2012
Thanks Grant,
Better change its title to "OnLogout not triggered after
initiator.stop(true)"... when you stop it forcefully...
On Fri, Feb 24, 2012 at 5:58 PM, Grant Birchmeier <gbirchmeier at connamara.com
> wrote:
> 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
>
>
> _______________________________________________
> 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/b53adf46/attachment-0001.htm>
More information about the Quickfixn
mailing list