From 5902726732ff04db6edf57f2148cf8cb166fb7ee Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sat, 25 Jul 2020 09:26:22 +0800 Subject: [PATCH] server: remove ws_ping_pong_interval on lws > 4.0 https://github.com/warmcat/libwebsockets/issues/1915 --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index c1e7c33..4043c61 100644 --- a/src/server.c +++ b/src/server.c @@ -449,7 +449,7 @@ int main(int argc, char **argv) { LWS_LIBRARY_VERSION); info.server_string = server_hdr; #endif -#if LWS_LIBRARY_VERSION_NUMBER >= 2001000 +#if LWS_LIBRARY_VERSION_NUMBER >= 2001000 && LWS_LIBRARY_VERSION_NUMBER < 4000000 info.ws_ping_pong_interval = 5; #endif -- 2.43.4