Module: kamailio
Branch: master
Commit: dc15a8cd44fa17bb5ad12bf418c78af9f6e071e1
URL:
https://github.com/kamailio/kamailio/commit/dc15a8cd44fa17bb5ad12bf418c78af…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-09-29T18:58:49+02:00
htable: do not fork clean timer if no auto-expire is defined
- match the same condition used in mod init to declare the extra process
- reported by GH #1237
---
Modified: src/modules/htable/htable.c
---
Diff:
https://github.com/kamailio/kamailio/commit/dc15a8cd44fa17bb5ad12bf418c78af…
Patch:
https://github.com/kamailio/kamailio/commit/dc15a8cd44fa17bb5ad12bf418c78af…
---
diff --git a/src/modules/htable/htable.c b/src/modules/htable/htable.c
index 40d1a558d1..bce82e96bb 100644
--- a/src/modules/htable/htable.c
+++ b/src/modules/htable/htable.c
@@ -232,7 +232,7 @@ static int child_init(int rank)
LM_DBG("rank is (%d)\n", rank);
if(rank==PROC_MAIN) {
- if(ht_timer_procs>0) {
+ if(ht_has_autoexpire() && ht_timer_procs>0) {
for(i=0; i<ht_timer_procs; i++) {
if(fork_sync_timer(PROC_TIMER, "HTable Timer", 1 /*socks flag*/,
ht_timer, (void*)(long)i, ht_timer_interval)<0) {