<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
<div class="moz-cite-prefix">On 08/09/14 21:22, Luis Azedo wrote:<br>
</div>
<blockquote
cite="mid:CAEvFzR-K=E5M=9cYH913QxOfen3Fxe-vZFU8RuPFkWbN0T6UNw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Daniel,
<div><br>
</div>
<div>presence seems to share the db connection on the clean
functions.</div>
</div>
</blockquote>
this should be no problem if it is same process. The connection is
shared also between different modules.<br>
<br>
<blockquote
cite="mid:CAEvFzR-K=E5M=9cYH913QxOfen3Fxe-vZFU8RuPFkWbN0T6UNw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>this leads to messages like</div>
<div><br>
</div>
<div>[dbt_base.c:150]: dbt_free_result(): unable to free
internal structure<br>
</div>
</div>
</blockquote>
I checked the code and this is printed when there is an attempt to
do free result over a connection that has a NULL result associated
with. Perhaps the log message should be discarded and the code
changed not to report this as an error.<br>
<br>
For example, I am not sure if the db_text creates any internal
result structure when there is no row in result. Do you get this log
all the time?<br>
<br>
Cheers,<br>
Daniel<br>
<blockquote
cite="mid:CAEvFzR-K=E5M=9cYH913QxOfen3Fxe-vZFU8RuPFkWbN0T6UNw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>here is mod_init of in presence.c</div>
<div>
<div><span class="" style="white-space:pre"> </span>if(clean_period>0)</div>
<div><span class="" style="white-space:pre"> </span>{</div>
<div><span class="" style="white-space:pre"> </span>register_timer(msg_presentity_clean,
0, clean_period);</div>
<div><span class="" style="white-space:pre"> </span>register_timer(msg_watchers_clean,
0, clean_period);</div>
<div><span class="" style="white-space:pre"> </span>}</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>i included a updated patch tested against master.</div>
<div>please consider including it.</div>
<div><br>
</div>
<div>Best</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany</pre>
</body>
</html>