Skip to content

Commit 8b21ecf

Browse files
authored
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 (project-chip#33158)
1 parent e12ace0 commit 8b21ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/common/websocket-server/WebSocketServer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ CHIP_ERROR WebSocketServer::Run(chip::Optional<uint16_t> port, WebSocketServerDe
178178
info.protocols = protocols;
179179
static const lws_retry_bo_t retry = {
180180
.secs_since_valid_ping = 400,
181-
.secs_since_valid_hangup = 400,
181+
.secs_since_valid_hangup = 420,
182182
};
183183
info.retry_and_idle_policy = &retry;
184184

0 commit comments

Comments
 (0)