Module: kamailio
Branch: master
Commit: 0793fb05b61e517a3353c436e8fb928c4730e573
URL:
https://github.com/kamailio/kamailio/commit/0793fb05b61e517a3353c436e8fb928…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-03-26T14:51:46+01:00
lwsc: do not set timeout fileds lws_context_creation_info
- needs to sort out which versions have them
---
Modified: src/modules/lwsc/lwsc_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0793fb05b61e517a3353c436e8fb928…
Patch:
https://github.com/kamailio/kamailio/commit/0793fb05b61e517a3353c436e8fb928…
---
diff --git a/src/modules/lwsc/lwsc_mod.c b/src/modules/lwsc/lwsc_mod.c
index a30179c13b..17eb0ca30a 100644
--- a/src/modules/lwsc/lwsc_mod.c
+++ b/src/modules/lwsc/lwsc_mod.c
@@ -531,11 +531,6 @@ static lwsc_endpoint_t* lwsc_get_endpoint(str *wsurl, str *wsproto)
ep->crtinfo.uid = -1;
#if LWS_LIBRARY_VERSION_MAJOR >= 3
ep->crtinfo.ws_ping_pong_interval = 5; /*secs*/
-#endif
-#if LWS_LIBRARY_VERSION_MAJOR >= 4
- /* apparently only in newer versions of libwebsockets */
- ep->crtinfo.timeout_secs = _lwsc_timeout_send;
- ep->crtinfo.connect_timeout_secs = _lwsc_timeout_connect;
#endif
/* 1 internal and 1 (+ 1 http2 nwsi) */
ep->crtinfo.fd_limit_per_thread = 1 + 1 + 1;