aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-10-11 00:28:41 -0500
committerJP Dillingham <jp@dillingham.me>2025-10-11 00:28:41 -0500
commite1a39de7d5e8127a2a3b52ecc5d09bb4961c40e0 (patch)
treefd20ad5b3623593c3ef0c7651e0a6b3b7e4fbd5a /src
parentbaafe5f4b4454b985ee33d5ff2e9df6213667bc4 (diff)
downloadslskd-e1a39de7d5e8127a2a3b52ecc5d09bb4961c40e0.tar.gz
add transfer timeout setting
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Core/Options.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 352d23e9..38416ca2 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1675,6 +1675,15 @@ namespace slskd
[Description("connection inactivity timeout, in milliseconds")]
[Range(1000, int.MaxValue)]
public int Inactivity { get; init; } = 15000;
+
+ /// <summary>
+ /// Gets the transfer connection timeout, in milliseconds.
+ /// </summary>
+ [Argument(default, "slsk-transfer-timeout")]
+ [EnvironmentVariable("SLSK_TRANSFER_TIMEOUT")]
+ [Description("transfer connection timeout, in milliseconds")]
+ [Range(30_000, int.MaxValue)]
+ public int Transfer { get; init; } = 60000;
}
/// <summary>