Module: kamailio
Branch: master
Commit: 5fee7d818f18afcab4d2e17231d2e4eab79b7b48
URL:
https://github.com/kamailio/kamailio/commit/5fee7d818f18afcab4d2e17231d2e4e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-12-09T10:29:37+01:00
core: tcp - debug message on no connect
---
Modified: src/core/tcp_main.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5fee7d818f18afcab4d2e17231d2e4e…
Patch:
https://github.com/kamailio/kamailio/commit/5fee7d818f18afcab4d2e17231d2e4e…
---
diff --git a/src/core/tcp_main.c b/src/core/tcp_main.c
index 2114e390f4..65b366b801 100644
--- a/src/core/tcp_main.c
+++ b/src/core/tcp_main.c
@@ -2044,8 +2044,10 @@ int tcp_send(struct dest_info* dst, union sockaddr_union* from,
}
/* check if connect() is disabled */
if (unlikely((dst->send_flags.f & SND_F_FORCE_CON_REUSE) ||
- cfg_get(tcp, tcp_cfg, no_connect)))
+ cfg_get(tcp, tcp_cfg, no_connect))) {
+ LM_DBG("no connect set and no active connection\n");
return -1;
+ }
LM_DBG("no open tcp connection found, opening new one\n");
/* create tcp connection */
if (likely(from==0)){