Skip to content

Commit

Permalink
Lobby websocket - fix disconnect - increase ping frequency (#12806)
Browse files Browse the repository at this point in the history
Lobby was upgraded recently to be on a newer version of the
server platform. Seemingly the websocket timeout has dropped
to 30 seconds. The previous keep-alive of 45 seconds was
not enough.

Changing the value to 10 seconds allows for 3 failed tries before
a disconnect.
  • Loading branch information
DanVanAtta authored Jul 30, 2024
1 parent f70bc23 commit 3b98a99
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class WebSocketConnection {
this.serverUri = serverUri;
pingSender =
Timers.fixedRateTimer("websocket-ping-sender")
.period(45, TimeUnit.SECONDS)
.delay(45, TimeUnit.SECONDS)
.period(10, TimeUnit.SECONDS)
.delay(10, TimeUnit.SECONDS)
.task(this::sendPingTask);
this.headers = headers;
}
Expand Down

0 comments on commit 3b98a99

Please sign in to comment.