[sr-dev] [kamailio/kamailio] sqlops offline database start and live re-connect (#1681)

mihovilkolaric notifications at github.com
Sun Nov 4 16:16:30 CET 2018


Thanks for your suggestions. I first tried the periodic timer, but I somehow did not get it working for the child-processes: altough I started a timer in each child, and the timer-method was even executed per child, it was always executed in the same process (verified with getpid()), so that the "postponed" initialization happen only in one process.

Anyhow, I then focussed on another approach, where the initialization is triggered with each sql-query, instead of periodically (which is anyway the more efficient way).
A first version worked quite well in my tests, and I am already trying to figure out how to open a PR ;-)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1681#issuecomment-435677963
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20181104/8b4e6951/attachment.html>


More information about the sr-dev mailing list