[sr-dev] sipcapture: Retry writing to homer database in case the first attempt fails

Alekzander Spiridonov alekz at li.ru
Wed Aug 20 17:26:22 CEST 2014


Hi,

Just a short note: plz avoid "magic numbers" in future. E.g.:
if(db_insert_mode==1 && c->db_funcs.insert_delayed!=NULL) {


2014-08-20 16:45 GMT+04:00 Lucian Balaceanu <lucian.balaceanu at 1and1.ro>:

>  Hi Alexandr,
>
> I will do it.
>
> Thank you,
> Lucian
>
>
> On 08/20/2014 02:44 PM, Alexandr Dubovikov wrote:
>
> Hi Lucian,
>
> for me it's ok. Should I apply the patch or you will do it by self ?
>
> Wbr,
> Alexandr
>
> On 8/20/2014 1:17 PM, Lucian Balaceanu wrote:
>
> Hi,
>
> We would like to propose a patch for the sipcapture module where we retry
> a write to the homer database in case the first attempt fails. This proves
> useful under heavy loads.
> We add the insert_retries parameter to limit the maximum number of write
> retries and also the insert_retry_timeout as a time limit for the retry.
>
> Thank you,
> Lucian Balaceanu
>
>
>
>
> _______________________________________________
> sr-dev mailing listsr-dev at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>
>
> _______________________________________________
> sr-dev mailing listsr-dev at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>


-- 
Best regards,
Alekzander Spiridonov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20140820/9f04be51/attachment.html>


More information about the sr-dev mailing list