[sr-dev] git:5.5:4a4835e1: lwsc: set ws_ping_pong_interval only for libwebsockets 3.x
Daniel-Constantin Mierla
miconda at gmail.com
Thu May 6 11:40:03 CEST 2021
Module: kamailio
Branch: 5.5
Commit: 4a4835e122bb3a53d2a1794640e1dec66736a897
URL: https://github.com/kamailio/kamailio/commit/4a4835e122bb3a53d2a1794640e1dec66736a897
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-05-06T11:39:33+02:00
lwsc: set ws_ping_pong_interval only for libwebsockets 3.x
(cherry picked from commit 048ed4210d52fb817ae6b03756d95e9b25899330)
---
Modified: src/modules/lwsc/lwsc_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/4a4835e122bb3a53d2a1794640e1dec66736a897.diff
Patch: https://github.com/kamailio/kamailio/commit/4a4835e122bb3a53d2a1794640e1dec66736a897.patch
---
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) */
More information about the sr-dev
mailing list