Module: kamailio
Branch: master
Commit: 048ed4210d52fb817ae6b03756d95e9b25899330
URL:
https://github.com/kamailio/kamailio/commit/048ed4210d52fb817ae6b03756d95e9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-05-06T11:37:58+02:00
lwsc: set ws_ping_pong_interval only for libwebsockets 3.x
---
Modified: src/modules/lwsc/lwsc_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/048ed4210d52fb817ae6b03756d95e9…
Patch:
https://github.com/kamailio/kamailio/commit/048ed4210d52fb817ae6b03756d95e9…
---
diff --git a/src/modules/lwsc/lwsc_mod.c b/src/modules/lwsc/lwsc_mod.c
index 17eb0ca30a..a6985acb6d 100644
--- a/src/modules/lwsc/lwsc_mod.c
+++ b/src/modules/lwsc/lwsc_mod.c
@@ -529,7 +529,7 @@ static lwsc_endpoint_t* lwsc_get_endpoint(str *wsurl, str *wsproto)
ep->crtinfo.protocols = ep->protocols;
ep->crtinfo.gid = -1;
ep->crtinfo.uid = -1;
-#if LWS_LIBRARY_VERSION_MAJOR >= 3
+#if LWS_LIBRARY_VERSION_MAJOR == 3
ep->crtinfo.ws_ping_pong_interval = 5; /*secs*/
#endif
/* 1 internal and 1 (+ 1 http2 nwsi) */