Skip to content

Commit f41e565

Browse files
author
Josh Peterson
committed
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.
1 parent cc64ebd commit f41e565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcs/class/System/System.Net/ServicePointManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public override bool Equals (object obj) {
132132
// Fields
133133

134134
public const int DefaultNonPersistentConnectionLimit = 4;
135-
#if MOBILE
135+
#if MOBILE && !UNITY_AOT
136136
public const int DefaultPersistentConnectionLimit = 10;
137137
#else
138138
public const int DefaultPersistentConnectionLimit = 2;

0 commit comments

Comments
 (0)