{{Quickfixn}} Reconnecting problem

Ondra Květ kwitee at gmail.com
Tue May 29 08:38:10 PDT 2012


Thank you for your answer. Your solution seems great. I try to
implement it to my project.

Regards,
kwitee

2012/5/29 Grant Birchmeier <gbirchmeier at connamara.com>:
> You should spend as little time inside OnMessage() calls as possible.  It
> will block the engine from processing further messages.
>
> Your DB connection limit doesn't seem like a huge issue.  In OnMessage, you
> can push your DB-task's information to a work queue, and another thread
> could iterate on that queue in a synchronized fashion, thus keeping to only
> one DB connection at a time.
>
> I'm sure there are many other ways to handle it, some better than mine, but
> that's the first thing that came to mind.
>
> -Grant
>
> On Tue, May 29, 2012 at 6:27 AM, Ondra Květ <kwitee at gmail.com> wrote:
>>
>> HI,
>> it is possible that long performed OnMessage method may cause reconnect?
>> I am calling database procedure in this method and it was working
>> properly at first. But after some DB changes I found some weird
>> reconnecting every few minutes. I can't do this in a separate thread
>> because my DB connections are limited.
>> DB procedure lasts about 70 milliseconds.
>> Thanks.
>>
>> kwitee
>> _______________________________________________
>> 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
>



More information about the Quickfixn mailing list