Skip to content

Commit

Permalink
lwsc: set ws_ping_pong_interval only for libwebsockets 3.x
Browse files Browse the repository at this point in the history
(cherry picked from commit 048ed42)
  • Loading branch information
miconda committed May 6, 2021
1 parent 4f930b7 commit 4a4835e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/lwsc/lwsc_mod.c
Expand Up @@ -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) */
Expand Down

0 comments on commit 4a4835e

Please sign in to comment.