Set DefaultPersistentConnectionLimit to 10 for Xamarin.Android
authorMarek Habersack <grendel@twistedcode.net>
Wed, 14 Sep 2016 09:18:13 +0000 (11:18 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Wed, 14 Sep 2016 09:18:13 +0000 (11:18 +0200)
This is to make it the same as the Xamarin.iOS setting and
fixes https://bugzilla.xamarin.com/show_bug.cgi?id=7467

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

index b3c996044ef3eb1fb7c24fa0e5040ffec577ef3b..17308253af502c5f6d2c134ba11acb2a0e4be2c8 100644 (file)
@@ -132,7 +132,7 @@ namespace System.Net
                // Fields
                
                public const int DefaultNonPersistentConnectionLimit = 4;
-#if MONOTOUCH
+#if MOBILE
                public const int DefaultPersistentConnectionLimit = 10;
 #else
                public const int DefaultPersistentConnectionLimit = 2;