From f41e5657833c9c794a74d500573721a2cbaf5853 Mon Sep 17 00:00:00 2001 From: Josh Peterson Date: Tue, 28 May 2019 15:18:05 -0400 Subject: [PATCH] Use the non-server default connection limit for unityaot (case 1156607) The default value for `DefaultConnectionLimit`, which is set based on the `DefaultPersistentConnectionLimit` value should be 2 for all non-ASP.NET applications. So for the unityaot profile, used with IL2CPP, use the value of 2. --- mcs/class/System/System.Net/ServicePointManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcs/class/System/System.Net/ServicePointManager.cs b/mcs/class/System/System.Net/ServicePointManager.cs index 56d682bd4025..e211e2a7fb55 100644 --- a/mcs/class/System/System.Net/ServicePointManager.cs +++ b/mcs/class/System/System.Net/ServicePointManager.cs @@ -132,7 +132,7 @@ public override bool Equals (object obj) { // Fields public const int DefaultNonPersistentConnectionLimit = 4; -#if MOBILE +#if MOBILE && !UNITY_AOT public const int DefaultPersistentConnectionLimit = 10; #else public const int DefaultPersistentConnectionLimit = 2;