Description

I am doing some experiments with NGHTTP2 Module to make use of it in some scenarios, where Kamailio receives HTTP2 requests and has t react on them, unfortunately the module is causing Kamailio to crash upon receiving a request and need to be restarted.
Also the Docs for the module need some correction :
https://www.kamailio.org/docs/modules/5.9.x/modules/nghttp2.html
Missing required Parameters :
modparam("nghttp2", "tls_private_key", "key_in_PEM_Format")
modparam("nghttp2", "tls_public_key", "certificate_in_PEM_Format")

also $nghttp2(url) is wrong, $nghttp2(path) or $nghttp2(pathfull) is the correct ones.

its also annoying to have it only working in TLS, would it possible to make it also works without TLS ?

Reproduction

the fastest way it to connect to NGHTTP2 server with curl :

curl --http2-prior-knowledge -v -k https://server_ip:port/

Debugging Data

92(132) DEBUG: nghttp2 [nghttp2_server.c:717]: eventcb(): 172.22.0.1 connected
92(132) DEBUG: nghttp2 [nghttp2_server.c:507]: on_request_recv(): 172.22.0.1 GET /
92(132) DEBUG: nghttp2 [nghttp2_mod.c:522]: ksr_event_route(): executing event_route[nghttp2:request] (1)
free(): invalid pointer
102(142) CRITICAL: <core> [core/pass_fd.c:281]: receive_fd(): EOF on 7
102(142) DEBUG: <core> [core/tcp_main.c:3984]: handle_ser_child(): dead child 92, pid 132 (shutting down?)
102(142) DEBUG: <core> [core/io_wait.h:599]: io_watch_del(): DBG: io_watch_del (0x5b85ddc10ae0, 7, -1, 0x0) fd_no=130 called
 0(40) ALERT: <core> [main.c:806]: handle_sigs(): child process 132 exited by a signal 6
 0(40) ALERT: <core> [main.c:810]: handle_sigs(): core was generated


Log Messages

https://pastebin.com/MQe4F5sv

Additional Information

Ubuntu 24.04


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/3917@github.com>