From 4a6b2600c4f3e0b0d638b9a4db217d6a4d603239 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Wed, 5 May 2021 12:41:42 +0800 Subject: [PATCH] server: update default ping interval to 5s --- src/server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server.c b/src/server.c index a35bbb8..d842f39 100644 --- a/src/server.c +++ b/src/server.c @@ -48,8 +48,8 @@ static lws_retry_bo_t retry = { .retry_ms_table = backoff_ms, .retry_ms_table_count = LWS_ARRAY_SIZE(backoff_ms), .conceal_count = LWS_ARRAY_SIZE(backoff_ms), - .secs_since_valid_ping = 300, - .secs_since_valid_hangup = 300 + 7, + .secs_since_valid_ping = 5, + .secs_since_valid_hangup = 10, .jitter_percent = 0, }; #endif @@ -117,7 +117,7 @@ static void print_help() { " -I, --index Custom index.html path\n" " -b, --base-path Expected base path for requests coming from a reverse proxy (eg: /mounted/here, max length: 128)\n" #if LWS_LIBRARY_VERSION_NUMBER >= 4000000 - " -P, --ping-interval Websocket ping interval(sec) (default: 300)\n" + " -P, --ping-interval Websocket ping interval(sec) (default: 5)\n" #endif #ifdef LWS_WITH_IPV6 " -6, --ipv6 Enable IPv6 support\n" -- 2.43.4