Author: jwilcox
Date: 2006-09-26 17:29:25 -0400 (Tue, 26 Sep 2006)
New Revision: 65938
Modified:
trunk/daap-sharp/ChangeLog
trunk/daap-sharp/src/ContentFetcher.cs
Log:
2006-09-26 James Willcox <[EMAIL PROTECTED]>
* src/ContentFetcher.cs: set ServicePoint connection limit to 3.
We effectively waste one by having the '/update' request, so it's
easy to run out.
Modified: trunk/daap-sharp/ChangeLog
===================================================================
--- trunk/daap-sharp/ChangeLog 2006-09-26 21:24:15 UTC (rev 65937)
+++ trunk/daap-sharp/ChangeLog 2006-09-26 21:29:25 UTC (rev 65938)
@@ -1,5 +1,11 @@
2006-09-26 James Willcox <[EMAIL PROTECTED]>
+ * src/ContentFetcher.cs: set ServicePoint connection limit to 3.
+ We effectively waste one by having the '/update' request, so it's
+ easy to run out.
+
+2006-09-26 James Willcox <[EMAIL PROTECTED]>
+
* src/User.cs: added, represents a user connected to the server
* src/Server.cs: add user login/logout events as well as a Users
property for obtaining the list of logged-in users.
Modified: trunk/daap-sharp/src/ContentFetcher.cs
===================================================================
--- trunk/daap-sharp/src/ContentFetcher.cs 2006-09-26 21:24:15 UTC (rev
65937)
+++ trunk/daap-sharp/src/ContentFetcher.cs 2006-09-26 21:29:25 UTC (rev
65938)
@@ -138,9 +138,9 @@
if (offset > 0) {
request.AddRange ("bytes", (int) offset);
}
+
+ request.ServicePoint.ConnectionLimit = 3;
- request.ServicePoint.MaxIdleTime =
System.Threading.Timeout.Infinite;
-
if (extraHeaders != null)
request.Headers = extraHeaders;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches