diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-07-06 17:48:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-06 17:48:48 -0400 |
| commit | 3b49c1bac01d73eb3f3d6620370d266d23026790 (patch) | |
| tree | 3be5cf1a79180c57a5381e26f60d61088a27b49e /Jellyfin.Server/Program.cs | |
| parent | ba551b48e1e1c80192e10b1bb340d974c6b6dee2 (diff) | |
| parent | 82f041d050f998d20818efff063b6000dfcbf5d2 (diff) | |
Merge pull request #1515 from jellyfin/release-10.3.z
Backmerge for 10.3.6
Diffstat (limited to 'Jellyfin.Server/Program.cs')
| -rw-r--r-- | Jellyfin.Server/Program.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index 11c09db98..75b820b8e 100644 --- a/Jellyfin.Server/Program.cs +++ b/Jellyfin.Server/Program.cs @@ -123,6 +123,17 @@ namespace Jellyfin.Server // CA5359: Do Not Disable Certificate Validation #pragma warning disable CA5359 + // 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); + + // Disable the "Expect: 100-Continue" header by default + // http://stackoverflow.com/questions/566437/http-post-returns-the-error-417-expectation-failed-c + ServicePointManager.Expect100Continue = false; + +// CA5359: Do Not Disable Certificate Validation +#pragma warning disable CA5359 + // Allow all https requests ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; }); #pragma warning restore CA5359 |
