<p>sorry about that, patch updated</p>
<pre><code>diff --git a/src/modules/htable/ht_api.c b/src/modules/htable/ht_api.c
index 1bbd079..b5872d0 100644
--- a/src/modules/htable/ht_api.c
+++ b/src/modules/htable/ht_api.c
@@ -674,6 +674,7 @@
&& strncmp(name->s, it->name.s, name->len)==0)
{
/* found */
+#if 0
if(now>0 && it->expire!=0 && it->expire<now) {
/* entry has expired */
ht_handle_expired_record(ht, it);
@@ -697,6 +698,7 @@
return NULL;
}
}
+#endif
/* update value */
if(it->flags&AVP_VAL_STR)
{
@@ -803,6 +805,7 @@
&& strncmp(name->s, it->name.s, name->len)==0)
{
/* found */
+#if 0
if(ht->htexpire>0 && it->expire!=0 && it->expire<time(NULL)) {
/* entry has expired, delete it and return NULL */
ht_handle_expired_record(ht, it);
@@ -818,6 +821,7 @@
ht_cell_free(it);
return NULL;
}
+#endif
if(old!=NULL)
{
if(old->msize>=it->msize)
@@ -1056,7 +1060,6 @@
if(it->expire!=0 && it->expire<now)
{
/* expired */
- ht_handle_expired_record(ht, it);
if(it->prev==NULL)
ht->entries[i].first = it->next;
else
@@ -1064,6 +1067,7 @@
if(it->next)
it->next->prev = it->prev;
ht->entries[i].esize--;
+ ht_handle_expired_record(ht, it);
ht_cell_free(it);
}
it = it0;
</code></pre>
<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/1152#issuecomment-309422043">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZVGGr6ua1cm017RMK5j7-4LCc-s8ks5sFmYmgaJpZM4N-IWr">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZZJ-VTqWSxfMTfs2OhJWLCQ6G9yrks5sFmYmgaJpZM4N-IWr.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1152#issuecomment-309422043"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@lazedo in #1152: sorry about that, patch updated\r\n\r\n```\r\ndiff --git a/src/modules/htable/ht_api.c b/src/modules/htable/ht_api.c\r\nindex 1bbd079..b5872d0 100644\r\n--- a/src/modules/htable/ht_api.c\r\n+++ b/src/modules/htable/ht_api.c\r\n@@ -674,6 +674,7 @@\r\n \t\t\t\t\u0026\u0026 strncmp(name-\u003es, it-\u003ename.s, name-\u003elen)==0)\r\n \t\t{\r\n \t\t\t/* found */\r\n+#if 0\r\n \t\t\tif(now\u003e0 \u0026\u0026 it-\u003eexpire!=0 \u0026\u0026 it-\u003eexpire\u003cnow) {\r\n \t\t\t\t/* entry has expired */\r\n \t\t\t\tht_handle_expired_record(ht, it);\r\n@@ -697,6 +698,7 @@\r\n \t\t\t\t\treturn NULL;\r\n \t\t\t\t}\r\n \t\t\t}\r\n+#endif\r\n \t\t\t/* update value */\r\n \t\t\tif(it-\u003eflags\u0026AVP_VAL_STR)\r\n \t\t\t{\r\n@@ -803,6 +805,7 @@\r\n \t\t\t\t\u0026\u0026 strncmp(name-\u003es, it-\u003ename.s, name-\u003elen)==0)\r\n \t\t{\r\n \t\t\t/* found */\r\n+#if 0\r\n \t\t\tif(ht-\u003ehtexpire\u003e0 \u0026\u0026 it-\u003eexpire!=0 \u0026\u0026 it-\u003eexpire\u003ctime(NULL)) {\r\n \t\t\t\t/* entry has expired, delete it and return NULL */\r\n \t\t\t\tht_handle_expired_record(ht, it);\r\n@@ -818,6 +821,7 @@\r\n \t\t\t\tht_cell_free(it);\r\n \t\t\t\treturn NULL;\r\n \t\t\t}\r\n+#endif\r\n \t\t\tif(old!=NULL)\r\n \t\t\t{\r\n \t\t\t\tif(old-\u003emsize\u003e=it-\u003emsize)\r\n@@ -1056,7 +1060,6 @@\r\n \t\t\t\t\tif(it-\u003eexpire!=0 \u0026\u0026 it-\u003eexpire\u003cnow)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\t/* expired */\r\n-\t\t\t\t\t\tht_handle_expired_record(ht, it);\r\n \t\t\t\t\t\tif(it-\u003eprev==NULL)\r\n \t\t\t\t\t\t\tht-\u003eentries[i].first = it-\u003enext;\r\n \t\t\t\t\t\telse\r\n@@ -1064,6 +1067,7 @@\r\n \t\t\t\t\t\tif(it-\u003enext)\r\n \t\t\t\t\t\t\tit-\u003enext-\u003eprev = it-\u003eprev;\r\n \t\t\t\t\t\tht-\u003eentries[i].esize--;\r\n+\t\t\t\t\t\tht_handle_expired_record(ht, it);\r\n \t\t\t\t\t\tht_cell_free(it);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tit = it0;\r\n```\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1152#issuecomment-309422043"}}}</script>