File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/main/kotlin/tech/relaycorp/poweb Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -314,6 +314,7 @@ public class PoWebClient internal constructor(
314
314
headers?.forEach { header(it.first, it.second) }
315
315
}
316
316
repeat(Int .MAX_VALUE ) {
317
+ logger.info { " Starting WebSocket connection attempt #$it " }
317
318
try {
318
319
return ktorClient.webSocket(url, request, block)
319
320
} catch (exc: EOFException ) {
@@ -322,7 +323,10 @@ public class PoWebClient internal constructor(
322
323
logger.info { " WebSocket connection ended abruptly (${exc.message} ). Will retry." }
323
324
delay(ABRUPT_DISCONNECT_RETRY_DELAY )
324
325
} catch (exc: IOException ) {
326
+ logger.info { " Server is unreachable (${exc.message} )" }
325
327
throw ServerConnectionException (" Server is unreachable" , exc)
328
+ } finally {
329
+ logger.info { " WebSocket connection attempt #$it ended" }
326
330
}
327
331
}
328
332
}
You can’t perform that action at this time.
0 commit comments