[banshee/gio-hardware] Globally set the default connection limit to 6



commit 1f41f4e059d391e79ecd26f35acd8d612f19560d
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]