commit eb5027830109002d6d0513b5c782b3ae96e339bc
parent 2460b772ac4e870aa307512cce1a8aa454d2d625
Author: Antoine A <>
Date: Mon, 25 Mar 2024 19:26:09 +0100
Improve default backoff config
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/src/main/kotlin/Backoff.kt b/common/src/main/kotlin/Backoff.kt
@@ -1,6 +1,6 @@
/*
* This file is part of LibEuFin.
- * Copyright (C) 2023 Taler Systems S.A.
+ * Copyright (C) 2023-2024 Taler Systems S.A.
* LibEuFin is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -23,8 +23,8 @@ import kotlin.random.Random
/** Infinite exponential backoff with decorrelated jitter */
class ExpoBackoffDecorr(
- private val base: Long = 100, // 0.1 second
- private val max: Long = 5000, // 5 second
+ private val base: Long = 100, // 0.1 second
+ private val max: Long = 60000, // 60 seconds
private val factor: Double = 2.0,
) {
private var sleep: Long = base