diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-01-18 16:47:00 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-01-18 16:47:00 -0600 |
| commit | bff2f9fa511061b1a24e30643c5f065ef159ffb0 (patch) | |
| tree | 735a1b756f988da7ad7b94454edde646541447db /src | |
| parent | 14827ae832d04e8df0058bb4a580de2ec84cb2bd (diff) | |
| download | slskd-bff2f9fa511061b1a24e30643c5f065ef159ffb0.tar.gz | |
tweak range
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Core/Options.cs | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 53c94303..e37a9446 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -1484,20 +1484,20 @@ namespace slskd public class SearchThrottlingOptions { /// <summary> - /// Gets search response throttling options. + /// Gets incoming search throttling options. /// </summary> [Validate] - public SearchResponseThrottlingOptions Response { get; init; } = new SearchResponseThrottlingOptions(); + public IncomingSearchThrottlingOptions Incoming { get; init; } = new IncomingSearchThrottlingOptions(); /// <summary> /// Search response throttling options. /// </summary> - public class SearchResponseThrottlingOptions + public class IncomingSearchThrottlingOptions { /// <summary> /// Gets the limit for the number of concurrent search response operations. /// </summary> - [EnvironmentVariable("THROTTLING_SEARCH_RESPONSE_CONCURRENCY")] + [EnvironmentVariable("THROTTLING_SEARCH_INCOMING_CONCURRENCY")] [Range(1, 100)] [RequiresRestart] public int Concurrency { get; init; } = 10; @@ -1505,10 +1505,17 @@ namespace slskd /// <summary> /// Gets the limit for the number of queued search response operations, after which requests will be discarded. /// </summary> - [EnvironmentVariable("THROTTLING_SEARCH_RESPONSE_CIRCUIT_BREAKER")] + [EnvironmentVariable("THROTTLING_SEARCH_INCOMING_CIRCUIT_BREAKER")] [Range(100, 10000)] [RequiresRestart] public int CircuitBreaker { get; init; } = 500; + + /// <summary> + /// Gets the limit for the number of files that can be returned in a single search request. + /// </summary> + [EnvironmentVariable("THROTTLING_SEARCH_INCOMING_RESPONSE_FILE_LIMIT")] + [Range(100, 5000)] + public int ResponseFileLimit { get; init; } = 500; } } } |
