From bff2f9fa511061b1a24e30643c5f065ef159ffb0 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 18 Jan 2026 16:47:00 -0600 Subject: tweak range --- src/slskd/Core/Options.cs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'src') 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 { /// - /// Gets search response throttling options. + /// Gets incoming search throttling options. /// [Validate] - public SearchResponseThrottlingOptions Response { get; init; } = new SearchResponseThrottlingOptions(); + public IncomingSearchThrottlingOptions Incoming { get; init; } = new IncomingSearchThrottlingOptions(); /// /// Search response throttling options. /// - public class SearchResponseThrottlingOptions + public class IncomingSearchThrottlingOptions { /// /// Gets the limit for the number of concurrent search response operations. /// - [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 /// /// Gets the limit for the number of queued search response operations, after which requests will be discarded. /// - [EnvironmentVariable("THROTTLING_SEARCH_RESPONSE_CIRCUIT_BREAKER")] + [EnvironmentVariable("THROTTLING_SEARCH_INCOMING_CIRCUIT_BREAKER")] [Range(100, 10000)] [RequiresRestart] public int CircuitBreaker { get; init; } = 500; + + /// + /// Gets the limit for the number of files that can be returned in a single search request. + /// + [EnvironmentVariable("THROTTLING_SEARCH_INCOMING_RESPONSE_FILE_LIMIT")] + [Range(100, 5000)] + public int ResponseFileLimit { get; init; } = 500; } } } -- cgit v1.2.3