[banshee] Globally set the default connection limit to 6
- From: Aaron Bockover <abock src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Globally set the default connection limit to 6
- Date: Tue, 3 Aug 2010 22:05:12 +0000 (UTC)
commit c65be138fe02fb82846fc0f4d2f583dde7bf6ee6
Author: Aaron Bockover <abockover novell com>
Date: Tue Aug 3 18:03:14 2010 -0400
Globally set the default connection limit to 6
Previously no more than two HttpWebRequest connections could be active
at any given time (per domain), which is incredibly lame. 6 is a
recommended limit.
This means that for instance, when downloading an Amazon MP3 album,
which does 2 at a time, the cover art for the album would not download
until all tracks in the album had finished downloading (since they come
from amazon.com as well).
.../Banshee.ServiceStack/ServiceManager.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.ServiceStack/ServiceManager.cs b/src/Core/Banshee.Services/Banshee.ServiceStack/ServiceManager.cs
index e838f84..dea66ab 100644
--- a/src/Core/Banshee.Services/Banshee.ServiceStack/ServiceManager.cs
+++ b/src/Core/Banshee.Services/Banshee.ServiceStack/ServiceManager.cs
@@ -125,6 +125,8 @@ namespace Banshee.ServiceStack
uint cumulative_timer_id = Log.InformationTimerStart ();
+ System.Net.ServicePointManager.DefaultConnectionLimit = 6;
+
foreach (Type type in service_types) {
RegisterService (type);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]