Author: kostat
Date: 2006-12-04 09:08:53 -0500 (Mon, 04 Dec 2006)
New Revision: 68948

Modified:
   trunk/mcs/class/System/System.Net/ChangeLog
   trunk/mcs/class/System/System.Net/ServicePoint.cs
   trunk/mcs/class/System/System.Net/ServicePointManager.cs
Log:
* ServicePointManager.cs: correct assignment typo.
* ServicePoint.cs: Remove unneeded locks for getters, add internal setter.


Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2006-12-04 14:05:57 UTC (rev 
68947)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2006-12-04 14:08:53 UTC (rev 
68948)
@@ -1,3 +1,8 @@
+2006-12-04  Konstantin Triger  <[EMAIL PROTECTED]>
+
+       * ServicePointManager.cs: correct assignment typo.
+       * ServicePoint.cs: Remove unneeded locks for getters, add internal 
setter.
+
 2006-11-27  Miguel de Icaza  <[EMAIL PROTECTED]>
 
        * WebRequest.cs: Instead of throwing NotImplemented exceptions,

Modified: trunk/mcs/class/System/System.Net/ServicePoint.cs
===================================================================
--- trunk/mcs/class/System/System.Net/ServicePoint.cs   2006-12-04 14:05:57 UTC 
(rev 68947)
+++ trunk/mcs/class/System/System.Net/ServicePoint.cs   2006-12-04 14:08:53 UTC 
(rev 68948)
@@ -100,18 +100,18 @@
 
                public int CurrentConnections {
                        get {
-                               lock (locker) {
-                                       return currentConnections;
-                               }
+                               return currentConnections;
                        }
                }
 
                public DateTime IdleSince {
                        get {
-                               lock (locker) {
-                                       return idleSince;
-                               }
+                               return idleSince;
                        }
+                       internal set {
+                               lock (locker)
+                                       idleSince = value;
+                       }
                }
                
                public int MaxIdleTime {

Modified: trunk/mcs/class/System/System.Net/ServicePointManager.cs
===================================================================
--- trunk/mcs/class/System/System.Net/ServicePointManager.cs    2006-12-04 
14:05:57 UTC (rev 68947)
+++ trunk/mcs/class/System/System.Net/ServicePointManager.cs    2006-12-04 
14:08:53 UTC (rev 68948)
@@ -260,7 +260,7 @@
                                        ServicePoint sp = (ServicePoint) 
e.Value;
                                        if (sp.CurrentConnections == 0) {
                                                while (list.ContainsKey 
(sp.IdleSince))
-                                                       
sp.IdleSince.AddMilliseconds (1);
+                                                       sp.IdleSince = 
sp.IdleSince.AddMilliseconds (1);
                                                list.Add (sp.IdleSince, 
sp.Address);
                                        }
                                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to