[Mono-bugs] [Bug 72443][Nor] New - When the methode HttpWebRequest.Close is invoked it try's to read the whole url. It should only release the resources. For big files the close methode thakes forever.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 10 Feb 2005 04:02:40 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by e.mulder@cybercomm.nl.

http://bugzilla.ximian.com/show_bug.cgi?id=72443

--- shadow/72443	2005-02-10 04:02:40.000000000 -0500
+++ shadow/72443.tmp.9603	2005-02-10 04:02:40.000000000 -0500
@@ -0,0 +1,71 @@
+Bug#: 72443
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: Tested in WinXp sp2 and Ununtu linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: e.mulder@cybercomm.nl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: When the methode HttpWebRequest.Close is invoked it try's to read the whole url. It should only release the resources. For big files the close methode thakes forever.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+When the methode HttpWebRequest.Close is invoked it try's to read through 
+whole url. It should only release the resources. For big files the close
+methode thakes forever.
+
+Tested on UBUNTU (mono 1.0.4)
+Tested om WinXP (mono 1.0.5)
+Tested om WinXP (mono 1.1.3)
+They all have this problem
+
+Steps to reproduce the problem:
+1. 
+
+using System;
+using System.Net;
+
+public class Test
+{
+    public static void Main (string[] args)
+    {   	
+    	string url =
+"http://homepage.mac.com/dailysourcecode/DSC/DSC-2005-02-08.mp3";
+        HttpWebRequest request = (HttpWebRequest)WebRequest.Create (url);
+        request.MaximumAutomaticRedirections = 4;
+        request.MaximumResponseHeadersLength = 4;
+        request.Credentials = CredentialCache.DefaultCredentials;
+        HttpWebResponse response = (HttpWebResponse)request.GetResponse ();
+        Console.WriteLine ("Content length is {0}", response.ContentLength);
+        Console.WriteLine ("Content type is {0}", response.ContentType);
+        //bug!
+        //Close takes forever (tries to read the whole file)    
+        response.Close ();         
+		//endbug!        
+    }
+}
+2. Compile and run
+
+Actual Results:
+response.Close() takes forever, esspecially if you have a slow internet
+connection
+
+Expected Results:
+response.Close() should only release the resources. (Like the ms-framework)
+
+
+How often does this happen? 
+Always
+
+Additional Information:
+-