<p>Hello,</p>
<p>We have a weird bug in our Kamailio boxes.</p>
<p>We use the DNS cache (for dns failover to work properly), and on some servers, the cache becomes broken after some time.</p>
<p>The expire value is stuck and do not decrement over time,<br>
on the entry and on the records :<br>
<code>kamcmd> dns.lookup A freeswitch { name: freeswitch type: A size_bytes: 200 reference_counter: 2 permanent: no expires: 2 last_used: 0 negative_entry: no records: { { rr_idx: 0 rr_ip: 10.0.0.1 rr_permanent: no rr_expires: 2 } { rr_idx: 1 rr_ip: 10.0.0.2 rr_permanent: no rr_expires: 2 } { rr_idx: 2 rr_ip: 10.0.0.3 rr_permanent: no rr_expires: 2 } } }</code></p>
<p>Expires values are computed each time like this :<br>
<code>now=get_ticks_raw(); expires = (s_ticks_t)(e->expire-now)<0?-1: TICKS_TO_S(e->expire-now);</code></p>
<p>So it would means either :</p>
<ul>
<li>TICKS_TO_S(get_ticks_raw()) == 0 when the entry is created</li>
<li>TICKS_TO_S(get_ticks_raw()) == 0 when the value is printed when we execute a dns.lookup through rpc.</li>
</ul>
<p>Details :</p>
<ul>
<li>Kamailio : 5.2.4 (x86_64/linux)</li>
<li>OS : Debian 9.9</li>
<li>Running in Docker on Kubernetes cluster</li>
</ul>
<p>I cannot say how to reproduce, it happens sometimes after running the binary :/</p>
<p>Do you have any idea ?</p>
<p>Kind regards,<br>
Mathieu Bodjikian</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2063?email_source=notifications&email_token=ABO7UZMGA2LLJZT3ZOFMAV3QI64T5A5CNFSM4IVJIV72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HKPPA6A">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIJ3ETYTZ3VBHMIWSTQI64T5ANCNFSM4IVJIV7Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZI46SM2FFWARLP6AKTQI64T5A5CNFSM4IVJIV72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HKPPA6A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2063?email_source=notifications\u0026email_token=ABO7UZMGA2LLJZT3ZOFMAV3QI64T5A5CNFSM4IVJIV72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HKPPA6A",
"url": "https://github.com/kamailio/kamailio/issues/2063?email_source=notifications\u0026email_token=ABO7UZMGA2LLJZT3ZOFMAV3QI64T5A5CNFSM4IVJIV72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HKPPA6A",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>