From f4926726933dc71fe438c3fe523d3b7b688d5f25 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 29 Jan 2021 22:38:20 +0100 Subject: [PATCH] Improve high load resiliency --- Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Program.cs b/Program.cs index 5c48dfd..b7f2b97 100644 --- a/Program.cs +++ b/Program.cs @@ -3,6 +3,7 @@ using LinqToDB.Data; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; using RTMPDash.DataModels; +using System.Threading; namespace RTMPDash { public class Program { @@ -18,6 +19,7 @@ namespace RTMPDash { public static void Main(string[] args) { DataConnection.DefaultSettings = new AppDb.Settings(); + ThreadPool.SetMinThreads(100,100); CreateHostBuilder(args).Build().Run(); }