Sergey Aldoukhov
06/08/2023, 8:53 PMDisconnected from server
java.io.IOException: Ping timeout
at io.ktor.websocket.DefaultWebSocketSessionImpl$runOrCancelPinger$newPinger$1.invokeSuspend(DefaultWebSocketSession.kt:293)
...
at io.ktor.websocket.PingPongKt$pinger$1.invokeSuspend(PingPong.kt:96)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
...
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
...
at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:291)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:833)
But ping interval is not configured on either OkHttp or client’s WebSocketSession. I assume they both are zeroes, why do I have the ping timeouts?
A side question: If I configure ping interval on both OkHttp engine and client’s WebSocketSession, will it do two series of pings?Johann Pardanaud
06/09/2023, 8:43 AMe5l
06/09/2023, 8:51 AMJohann Pardanaud
06/09/2023, 8:54 AMe5l
06/09/2023, 8:55 AMJohann Pardanaud
06/09/2023, 8:58 AMe5l
06/09/2023, 8:58 AMSergey Aldoukhov
06/09/2023, 3:19 PMJohann Pardanaud
06/09/2023, 3:53 PM