From 3e282b4e3403187f74738f27f44d2b81b90cc3aa Mon Sep 17 00:00:00 2001 From: Jason Ngo Date: Tue, 29 Apr 2025 22:44:07 -0400 Subject: [PATCH] Extend client timeout from default value of 100 seconds to 30 minutes --- Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 4f69da0..dcddf76 100755 --- a/Program.cs +++ b/Program.cs @@ -13,7 +13,10 @@ namespace ModlinksShaVerifier { internal static class Program { - private static readonly HttpClient _Client = new(); + private static readonly HttpClient _Client = new() + { + Timeout = TimeSpan.FromMinutes(30) + }; private static string ShaToString(byte[] hash) => BitConverter.ToString(hash).Replace("-", "").ToLowerInvariant(); @@ -75,7 +78,7 @@ internal static async Task Main(string[] args) var reader = XmlReader.Create(path, new XmlReaderSettings {Async = true}); var serializer = new XmlSerializer(typeof(Manifest)); - + List> checks = new(); while (await reader.ReadAsync())