Module: kamailio
Branch: master
Commit: b8fbf5e8c199b8277053f9c15231695a16058d6e
URL: 
https://github.com/kamailio/kamailio/commit/b8fbf5e8c199b8277053f9c15231695a16058d6e

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2021-06-23T08:49:38+02:00

xhttp: warning log if tcp_accept_no_cl is not set

---

Modified: src/modules/xhttp/xhttp_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/b8fbf5e8c199b8277053f9c15231695a16058d6e.diff
Patch: 
https://github.com/kamailio/kamailio/commit/b8fbf5e8c199b8277053f9c15231695a16058d6e.patch

---

diff --git a/src/modules/xhttp/xhttp_mod.c b/src/modules/xhttp/xhttp_mod.c
index f62c880a9a..1aec2763d9 100644
--- a/src/modules/xhttp/xhttp_mod.c
+++ b/src/modules/xhttp/xhttp_mod.c
@@ -41,6 +41,7 @@
 #include "../../core/sip_msg_clone.h"
 #include "../../core/mod_fix.h"
 #include "../../core/pvar.h"
+#include "../../core/tcp_options.h"
 #include "../../core/kemi.h"
 
 #include "api.h"
@@ -142,6 +143,11 @@ static int mod_init(void)
                xhttp_route_no = route_no;
        }
 
+       if(cfg_get(tcp, tcp_cfg, accept_no_cl)==0) {
+               LM_WARN("tcp_accept_no_cl not set - usually required"
+                               " to handle HTTP requests with no 
Content-Lenght\n");
+       }
+
        /* bind the SL API */
        if(sl_load_api(&slb) != 0) {
                LM_ERR("cannot bind to SL API\n");


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to