aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-05-24 12:52:16 -0500
committerJP Dillingham <jp@dillingham.me>2026-05-24 12:52:16 -0500
commitc03c5087aa6ac70491363b7dff05909f7bc64fe0 (patch)
tree00be3ca9930d2faed0529e63ea095679569f113f
parent746f7ceefa61e62ad801b825f80b87fe9c853c44 (diff)
downloadslskd-c03c5087aa6ac70491363b7dff05909f7bc64fe0.tar.gz
rename 'incomplete' to 'partial', default to 'resume' (to match docs)
-rw-r--r--config/slskd.example.yml2
-rw-r--r--docs/config.md4
-rw-r--r--src/slskd/Core/Options.cs6
3 files changed, 6 insertions, 6 deletions
diff --git a/config/slskd.example.yml b/config/slskd.example.yml
index e68baae2..1063e7f5 100644
--- a/config/slskd.example.yml
+++ b/config/slskd.example.yml
@@ -74,7 +74,7 @@
# slots: 500
# speed_limit: 1000
# retry:
-# incomplete: resume # 'overwrite' or 'resume'
+# partial: resume # 'overwrite' or 'resume'
# attempts: 3
# delay: 5000 # initial time between retries, in milliseconds
# max_delay: 60000 # maximum time between retries, in milliseconds
diff --git a/docs/config.md b/docs/config.md
index 14f1ae24..40d3a78a 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -362,14 +362,14 @@ transfers:
Failed downloads can be retried automatically up to the configured number of attempts. If an attempt fails initially, the application delays the second attempt by the configured delay, and an exponential backoff is used to compute the delay for all subsequent events, up to the configured maximum delay.
-By default, partial downloads are resumed based on the size of the incomplete file. Users can choose to always overwrite files if they wish.
+By default, partial downloads are resumed based on the size of the file on disk. Users can choose to always overwrite files if they wish.
**YAML**
```yaml
transfers:
download:
retry:
- incomplete: resume # 'overwrite' or 'resume'
+ partial: resume # 'overwrite' or 'resume'
attempts: 3
delay: 5000 # initial time between retries, in milliseconds
max_delay: 60000 # maximum time between retries, in milliseconds
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 83e534a1..bac86ea2 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1052,10 +1052,10 @@ namespace slskd
public int MaxDelay { get; init; } = 60_000;
/// <summary>
- /// Gets the strategy for handling incomplete files upon retry.
+ /// Gets the strategy for handling partial files upon retry.
/// </summary>
- [Enum(typeof(RetryIncompleteStrategy))]
- public string Incomplete { get; init; } = RetryIncompleteStrategy.Overwrite.ToString().ToLowerInvariant();
+ [Enum(typeof(RetryPartialStrategy))]
+ public string Partial { get; init; } = RetryPartialStrategy.Resume.ToString().ToLowerInvariant();
}
}