Skip to content

Commit 31734d7

Browse files
committed
fix(model-server-lib): increase websocket timeouts
The existing timeouts sometimes caused disconnects when requesting larger amounts of data despite everything being functional.
1 parent 31f2a34 commit 31734d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model-server-lib/src/main/kotlin/org/modelix/model/server/light/LightModelServer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ class LightModelServer @JvmOverloads constructor(val port: Int, val rootNodeProv
182182

183183
fun Application.installHandlers() {
184184
install(WebSockets) {
185-
pingPeriod = Duration.ofSeconds(15)
186-
timeout = Duration.ofSeconds(15)
185+
pingPeriod = Duration.ofSeconds(30)
186+
timeout = Duration.ofSeconds(30)
187187
maxFrameSize = Long.MAX_VALUE
188188
masking = false
189189
}

0 commit comments

Comments
 (0)