From 4f09ab6662c709d6b5eb0bacf8f24af56c3bff37 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 17 Dec 2024 17:42:12 -0600 Subject: add OptimisticRelayFileInfo flag --- src/slskd/Core/Options.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index a7fb26c4..32188aef 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -435,6 +435,15 @@ namespace slskd [EnvironmentVariable("LEGACY_WINDOWS_TCP_KEEPALIVE")] [Description("use a legacy TCP keepalive strategy for older Windows versions")] public bool LegacyWindowsTcpKeepalive { get; init; } = false; + + /// + /// Gets a value indicating whether to use the uploaded shares from Relay agents as the source of + /// truth for file existence and size, instead of querying the agent prior to enqueueing the file. + /// + [Argument(default, "optimistic-relay-file-info")] + [EnvironmentVariable("OPTIMISTIC_RELAY_FILE_INFO")] + [Description("use uploaded relay shares as source of truth for file existence and size")] + public bool OptimisticRelayFileInfo { get; init; } = false; } /// -- cgit v1.2.3