diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-10-11 00:39:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-11 00:39:30 -0500 |
| commit | 58610574ec2c3a7d66be64a69cf76f9de1ad4da0 (patch) | |
| tree | ddfd395fe81969f45da4f9d792eca2f5d5f60658 /src/slskd/Core/Options.cs | |
| parent | baafe5f4b4454b985ee33d5ff2e9df6213667bc4 (diff) | |
| parent | 4b3a876411b09aa104c40aea094a9dc34e1d23e3 (diff) | |
| download | slskd-58610574ec2c3a7d66be64a69cf76f9de1ad4da0.tar.gz | |
Merge pull request #1474 from slskd/timeout
Add dedicated transfer connection timeout, set server, distributed and transfer connection timeouts explicitly. Bump Soulseek.NET to 8.4.0
Diffstat (limited to 'src/slskd/Core/Options.cs')
| -rw-r--r-- | src/slskd/Core/Options.cs | 9 |
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> |
