increase cached file provider timeout

This commit is contained in:
Stanley Dimant
2024-11-22 18:33:52 +01:00
parent d26546cf7c
commit f2ebbd72fe

View File

@@ -39,6 +39,7 @@ public sealed class CachedFileProvider : IDisposable
_hotStoragePath = configuration.GetValue<string>(nameof(StaticFilesServerConfiguration.CacheDirectory)); _hotStoragePath = configuration.GetValue<string>(nameof(StaticFilesServerConfiguration.CacheDirectory));
_httpClient = new(); _httpClient = new();
_httpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("MareSynchronosServer", "1.0.0.0")); _httpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("MareSynchronosServer", "1.0.0.0"));
_httpClient.Timeout = TimeSpan.FromSeconds(300);
} }
public void Dispose() public void Dispose()