From 21207f4eefa8a667c059376a8383f5cdf5065113 Mon Sep 17 00:00:00 2001 From: CWX Date: Wed, 22 Jan 2025 15:47:35 +0000 Subject: [PATCH] add timeout so debugging is earier --- Server/Program.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Server/Program.cs b/Server/Program.cs index 5459b069..c5e5684f 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -21,6 +21,12 @@ public static class Program HarmonyBootstrapper.LoadAllPatches(assemblies); var builder = WebApplication.CreateBuilder(args); builder.Host.UseSerilog(); + builder.WebHost.ConfigureKestrel( + serverOptions => + { + serverOptions.Limits.KeepAliveTimeout = TimeSpan.FromMinutes(25); + } + ); builder.Configuration.AddJsonFile("appsettings.json", true, true);