ping each 20s

nginx timeouts on 30s
This commit is contained in:
creeper123123321 2021-07-09 15:10:01 -03:00 committed by GitHub
parent 061699242f
commit 6caafab973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ class ViaWebApp(val viaWebServer: WebDashboardServer) {
}
install(WebSockets) {
maxFrameSize = Short.MAX_VALUE.toLong()
pingPeriod = Duration.ofSeconds(60)
pingPeriod = Duration.ofSeconds(20)
timeout = Duration.ofSeconds(15)
}
install(XForwardedHeaderSupport)