Flush (work in progress)
[mono.git] / mcs / class / System / System.Net / ServicePoint.cs
index b4cca73662da58e993f02269b65dab1934d2b6fb..c93f36d1bba52b5c28f89ab5f537dc4b602af70c 100644 (file)
@@ -179,7 +179,6 @@ namespace System.Net
                        set { SendContinue = value; }
                }
 
-               [MonoTODO ("Use me")]
                public bool UseNagleAlgorithm {
                        get { return useNagle; }
                        set { useNagle = value; }
@@ -193,10 +192,12 @@ namespace System.Net
                }
                // Methods
                
+#if !NET_2_0
                public override int GetHashCode() 
                {
                        return base.GetHashCode ();
                }
+#endif
                
                // Internal Methods
 
@@ -269,6 +270,7 @@ namespace System.Net
                {
                        protocolVersion = version;
                }
+
 #if !TARGET_JVM
                WebConnectionGroup GetConnectionGroup (string name)
                {
@@ -290,17 +292,24 @@ namespace System.Net
                        
                        lock (locker) {
                                WebConnectionGroup cncGroup = GetConnectionGroup (groupName);
-                               cnc = cncGroup.GetConnection ();
+                               cnc = cncGroup.GetConnection (request);
                        }
                        
                        return cnc.SendRequest (request);
                }
 #endif
 #if NET_2_0
-               [MonoNotSupported ("")]
                public bool CloseConnectionGroup (string connectionGroupName)
                {
-                       throw new NotImplementedException ();
+                       lock (locker) {
+                               WebConnectionGroup cncGroup = GetConnectionGroup (connectionGroupName);
+                               if (cncGroup != null) {
+                                       cncGroup.Close ();
+                                       return true;
+                               }
+                       }
+
+                       return false;
                }
 #endif