set secs_since_valid_hangup larger than secs_since_valid_ping, otherwise the socket will be close directlly after 400s and no ping sent out (#33158)
diff --git a/examples/common/websocket-server/WebSocketServer.cpp b/examples/common/websocket-server/WebSocketServer.cpp
index 2f5fb9f..402754d 100644
--- a/examples/common/websocket-server/WebSocketServer.cpp
+++ b/examples/common/websocket-server/WebSocketServer.cpp
@@ -178,7 +178,7 @@
info.protocols = protocols;
static const lws_retry_bo_t retry = {
.secs_since_valid_ping = 400,
- .secs_since_valid_hangup = 400,
+ .secs_since_valid_hangup = 420,
};
info.retry_and_idle_policy = &retry;