Module: kamailio
Branch: master
Commit: fde8bd21dca9c8b45b314b04b21f742363f028b1
URL:
https://github.com/kamailio/kamailio/commit/fde8bd21dca9c8b45b314b04b21f742…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-08-30T12:52:46+02:00
http_client: clang-format
---
Modified: src/modules/http_client/curlcon.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fde8bd21dca9c8b45b314b04b21f742…
Patch:
https://github.com/kamailio/kamailio/commit/fde8bd21dca9c8b45b314b04b21f742…
---
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).
*/