{{Quickfixn}} Reconnecting problem

Grant Birchmeier gbirchmeier at connamara.com
Tue May 29 07:24:09 PDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20120529/e2287bdc/attachment-0001.htm>


More information about the Quickfixn mailing list