There was an error while loading. Please reload this page.
1 parent 4365f6c commit 87ee162Copy full SHA for 87ee162
1 file changed
src/main/kotlin/org/coralprotocol/coralserver/session/LocalSessionManager.kt
@@ -27,6 +27,7 @@ import kotlin.time.Duration.Companion.milliseconds
27
import kotlin.time.ExperimentalTime
28
29
private const val SESSION_END_WEBHOOK_ATTEMPTS = 3
30
+private const val SESSION_END_WEBHOOK_BACKOFF_MS = 1_000L
31
32
data class LocalSessionNamespace(
33
val name: String,
@@ -294,7 +295,7 @@ class LocalSessionManager(
294
295
// A 4xx (bad HMAC/URL/auth) won't self-heal; retry only transport failures and 5xx.
296
val retryable = status.isFailure || (code != null && code.value in 500..599)
297
if (!retryable || attempt == SESSION_END_WEBHOOK_ATTEMPTS - 1) return
- delay((attempt + 1) * 1000L)
298
+ delay((attempt + 1) * SESSION_END_WEBHOOK_BACKOFF_MS)
299
}
300
301
0 commit comments