Module: kamailio
Branch: 5.0
Commit: eabe0f84b46840d1164c83791c998021f9c42bd1
URL:
https://github.com/kamailio/kamailio/commit/eabe0f84b46840d1164c83791c99802…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-09-29T19:01:03+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
(cherry picked from commit dc15a8cd44fa17bb5ad12bf418c78af9f6e071e1)
---
Modified: src/modules/htable/htable.c
---
Diff:
https://github.com/kamailio/kamailio/commit/eabe0f84b46840d1164c83791c99802…
Patch:
https://github.com/kamailio/kamailio/commit/eabe0f84b46840d1164c83791c99802…
---
diff --git a/src/modules/htable/htable.c b/src/modules/htable/htable.c
index 8f79c77d39..14973ee3f0 100644
--- a/src/modules/htable/htable.c
+++ b/src/modules/htable/htable.c
@@ -226,7 +226,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) {