diff options
| author | Bond-009 <bond.009@outlook.com> | 2019-03-26 19:20:40 +0100 |
|---|---|---|
| committer | Bond-009 <bond.009@outlook.com> | 2019-03-26 19:20:40 +0100 |
| commit | a332092769cec5a3b17b7fb49b2d7c66bfe289bd (patch) | |
| tree | 350f5775d822e3b1d7faa041f8b49e08f4577bd4 /Jellyfin.Server/Program.cs | |
| parent | 31607fbb377c826415dc0f6689ac4189b38c840f (diff) | |
Reduce complexity http routes
Diffstat (limited to 'Jellyfin.Server/Program.cs')
| -rw-r--r-- | Jellyfin.Server/Program.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index 82a76c637..fab584bef 100644 --- a/Jellyfin.Server/Program.cs +++ b/Jellyfin.Server/Program.cs @@ -19,7 +19,6 @@ using MediaBrowser.Common.Configuration; using MediaBrowser.Controller.Drawing; using MediaBrowser.Model.Globalization; using MediaBrowser.Model.IO; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; @@ -119,6 +118,10 @@ namespace Jellyfin.Server SQLitePCL.Batteries_V2.Init(); + // Increase the max http request limit + // The default connection limit is 10 for ASP.NET hosted applications and 2 for all others. + ServicePointManager.DefaultConnectionLimit = Math.Max(96, ServicePointManager.DefaultConnectionLimit); + // Allow all https requests ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; }); |
