Module: kamailio
Branch: master
Commit: de84212c4a43402ea094f1b38aed9ca09b0c89a5
URL:
https://github.com/kamailio/kamailio/commit/de84212c4a43402ea094f1b38aed9ca…
Author: S-P Chan <shihping.chan(a)gmail.com>
Committer: S-P Chan <shihping.chan(a)gmail.com>
Date: 2024-12-20T16:27:07+08:00
http_client: revert tls_threads_mode=1
---
Modified: src/modules/http_client/http_client.c
---
Diff:
https://github.com/kamailio/kamailio/commit/de84212c4a43402ea094f1b38aed9ca…
Patch:
https://github.com/kamailio/kamailio/commit/de84212c4a43402ea094f1b38aed9ca…
---
diff --git a/src/modules/http_client/http_client.c
b/src/modules/http_client/http_client.c
index a7de8ea51bd..6f2d54c94b5 100644
--- a/src/modules/http_client/http_client.c
+++ b/src/modules/http_client/http_client.c
@@ -64,9 +64,6 @@
#include "../../core/lvalue.h"
#include "../../core/pt.h" /* Process table */
#include "../../core/kemi.h"
-#define KSR_RTHREAD_NEED_4L
-#define KSR_RTHREAD_SKIP_P
-#include "../../core/rthreads.h"
#include "functions.h"
#include "curlcon.h"
@@ -305,7 +302,7 @@ static int mod_init(void)
LM_DBG("init curl module\n");
/* Initialize curl */
- if(run_thread4L((_thread_proto4L)&curl_global_init, CURL_GLOBAL_ALL)) {
+ if(curl_global_init(CURL_GLOBAL_ALL)) {
LM_ERR("curl_global_init failed\n");
return -1;
}