@nchaigne commented on this pull request.


> @@ -854,3 +854,24 @@ curl_con_t *curl_init_con(str *name)
        LM_DBG("CURL: Added connection [%.*s]\n", name->len, name->s);
        return cc;
 }
+
+/*! Fixup CURL connections - if timeout is not configured, Use as default 
global connection_timeout.
+ */
+void curl_conn_list_fixup(void)
+{
+       curl_con_t *cc;
+       cc = _curl_con_root;
+       while (cc) {
+               if (!(timeout_mode == 1 || timeout_mode == 2)) {
+                       /* Timeout is disabled globally. Set timeout to 0 for 
all connections to reflect this. */
+                       cc->timeout = 0;

Good suggestion.
I will also add a warning if the global timeout has been configured but 
timeouts are disabled.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3615#discussion_r1370438373
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/3615/review/1695281...@github.com>
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to