diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-04-17 22:12:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-17 22:12:17 -0400 |
| commit | c3532b92f7bd3e2bdba8c9a2aaf9ebf06016b322 (patch) | |
| tree | b6391e1834bf41a9b22e738f673f3cf9666c1ee7 /Jellyfin.Server/Program.cs | |
| parent | 0539861dc038b53cb23f353e0f68885aa0133bab (diff) | |
| parent | 157a86d0f139d149083036e6ea962e0fd7d77057 (diff) | |
Merge pull request #1158 from Bond-009/httpclean
Reduce complexity http routes
Diffstat (limited to 'Jellyfin.Server/Program.cs')
| -rw-r--r-- | Jellyfin.Server/Program.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index d4b10c8c8..fab584bef 100644 --- a/Jellyfin.Server/Program.cs +++ b/Jellyfin.Server/Program.cs @@ -118,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; }); |
