Module: kamailio
Branch: 5.8
Commit: 60423dbe90d3603fa98e0aaf161b7bef7f8b2a23
URL:
https://github.com/kamailio/kamailio/commit/60423dbe90d3603fa98e0aaf161b7be…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-09-04T09:38:48+02:00
http_client: clang-format
(cherry picked from commit fde8bd21dca9c8b45b314b04b21f742363f028b1)
---
Modified: src/modules/http_client/curlcon.c
---
Diff:
https://github.com/kamailio/kamailio/commit/60423dbe90d3603fa98e0aaf161b7be…
Patch:
https://github.com/kamailio/kamailio/commit/60423dbe90d3603fa98e0aaf161b7be…
---
diff --git a/src/modules/http_client/curlcon.c b/src/modules/http_client/curlcon.c
index 2b5a69fcddd..16dfb6cc09b 100644
--- a/src/modules/http_client/curlcon.c
+++ b/src/modules/http_client/curlcon.c
@@ -861,17 +861,16 @@ void curl_conn_list_fixup(void)
{
curl_con_t *cc;
cc = _curl_con_root;
- while (cc) {
- if (!(timeout_mode == 1 || timeout_mode == 2)) {
+ while(cc) {
+ if(!(timeout_mode == 1 || timeout_mode == 2)) {
/* Timeout is disabled globally. Set timeout to 0 for all connections to reflect this.
*/
- if (cc->timeout > 0) {
+ if(cc->timeout > 0) {
LM_WARN("curl connection [%.*s]: configured timeout is ignored "
- "because timeouts are disabled (timeout_mode)\n",
- cc->name.len, cc->name.s);
+ "because timeouts are disabled (timeout_mode)\n",
+ cc->name.len, cc->name.s);
cc->timeout = 0;
}
- }
- else if (cc->timeout == 0) {
+ } else if(cc->timeout == 0) {
/* Timeout is not configured for that connection.
* Use as default global connection_timeout (which can be seconds or milliseconds).
*/