aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-03-15 11:18:08 -0500
committerGitHub <noreply@github.com>2026-03-15 11:18:08 -0500
commit032d9a3513642b85379c6b33a479cb7e0a5adc22 (patch)
tree3d87f453f75d858dfa65c24d1e5fc883916736ff /src/slskd/Core
parent0165b5f6cbae759acfe337170f831a11a45634e9 (diff)
parentd1de2611e3662a318d7f1347996e4cd26ae376a3 (diff)
downloadslskd-032d9a3513642b85379c6b33a479cb7e0a5adc22.tar.gz
Merge pull request #1671 from slskd/retry-do
Add the ability to specify base delay for exponential backoff, add onRetry delegate for Retry.Do
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/ConnectionWatchdog.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slskd/Core/ConnectionWatchdog.cs b/src/slskd/Core/ConnectionWatchdog.cs
index d2f7caa8..1cf1779f 100644
--- a/src/slskd/Core/ConnectionWatchdog.cs
+++ b/src/slskd/Core/ConnectionWatchdog.cs
@@ -264,6 +264,7 @@ namespace slskd
{
var (delay, jitter) = Compute.ExponentialBackoffDelay(
iteration: attempts,
+ baseDelayInMilliseconds: 1000,
maxDelayInMilliseconds: ReconnectMaxDelayMilliseconds);
var approximateDelay = (int)Math.Ceiling((double)(delay + jitter) / 1000);