Bug 7467

Summary: DefaultNonPersistentConnectionLimit is to low
Product: Android Reporter: Rodja Trappe <mail>
Component: GeneralAssignee: Marek Habersack <grendel>
Status: RESOLVED FIXED    
Severity: normal CC: atsushi, gouri.kumari, mono-bugs+monodroid
Priority: Normal    
Version: 4.2.x   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS   
Tags: XATriaged Is this bug a regression?: ---
Last known good build:

Description Rodja Trappe 2012-09-26 07:25:54 UTC
The DefaultNonPersistentConnectionLimit for MonoDroid seems to be 2. This is way to low for most Apps out there. It can take a few hours until a developer figures out where the problem is. I suggest to increase it to 10 like on MonoTouch:


-----8<----

#if MONOTOUCH
		public const int DefaultPersistentConnectionLimit = 10;
#else
		public const int DefaultPersistentConnectionLimit = 2;
#endif

------>8--- https://github.com/mono/mono/blob/master/mcs/class/System/System.Net/ServicePointManager.cs#L131
Comment 2 Atsushi Eno 2016-09-14 06:51:20 UTC
@grendel: do you think we should also change this too? Changing the number on the code is easy.
Comment 3 Marek Habersack 2016-09-14 09:21:37 UTC
Change made to mono in:

  master, commit d06354174070d01394f5e75ffcfc9c1110a1e7db
  mono-4.8.0-branch, commit 482ab094eb932f0655a710261267f3a1d6133678

The latter will make it into Xamarin.Android once it starts tracking Mono 4.8