Skip to content

Commit

Permalink
server: update default ping interval to 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed May 5, 2021
1 parent d7440fb commit 4a6b260
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 4a6b260

Please sign in to comment.