Module: kamailio
Branch: master
Commit: b5cb581bd8f529dab8f4bcc6173e0cf1ad936550
URL:
https://github.com/kamailio/kamailio/commit/b5cb581bd8f529dab8f4bcc6173e0cf…
Author: S-P Chan <shihping.chan(a)gmail.com>
Committer: S-P Chan <shihping.chan(a)gmail.com>
Date: 2024-12-20T20:56:09+08:00
tls: warn if tls_threads_mode=1 and force value to 2
---
Modified: src/modules/tls/tls_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b5cb581bd8f529dab8f4bcc6173e0cf…
Patch:
https://github.com/kamailio/kamailio/commit/b5cb581bd8f529dab8f4bcc6173e0cf…
---
diff --git a/src/modules/tls/tls_mod.c b/src/modules/tls/tls_mod.c
index 1d7169b27e6..8a0b781831e 100644
--- a/src/modules/tls/tls_mod.c
+++ b/src/modules/tls/tls_mod.c
@@ -408,6 +408,12 @@ static int mod_init(void)
"tls.so must be the first module loaded\n");
}
}
+
+ if(ksr_tls_threads_mode == KSR_TLS_THREADS_MTEMP) {
+ LM_WARN("tls_threads_mode=1 is invalid on kamailio version >= 6; "
+ "forcing tls_threads_mode=2\n");
+ ksr_tls_threads_mode = KSR_TLS_THREADS_MFORK;
+ }
#endif /* OPENSSL_VERSION_NUMBER*/
if(tls_disable) {