[Mono-bugs] [Bug 66858][Blo] Changed - HttpWebResponse ResponseStream blocks indefinitely when trying to Read from it

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 26 Sep 2004 15:22:47 -0400 (EDT)


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 hova__0@hotmail.com.

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

--- shadow/66858	2004-09-26 15:16:28.000000000 -0400
+++ shadow/66858.tmp.7387	2004-09-26 15:22:47.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 66858
 Product: Mono: Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: Debian unstable using Mono 1.0.1
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Blocker
 Component: System
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: hova__0@hotmail.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -39,6 +39,52 @@
 How often does this happen? 
 Unpredictable.
 
 Additional Information:
 I tried to find a changelog to see if this might have been fixed in 1.0.2,
 but was unable to find one.
+
+------- Additional Comments From hova__0@hotmail.com  2004-09-26 15:22 -------
+SOURCE:
+--------
+Console.Write(" Entered readfromrss");
+System.Net.HttpWebResponse wbres;
+System.IO.MemoryStream tempbuffer = new System.IO.MemoryStream();
+System.Net.HttpWebRequest rsssource;
+System.IO.StreamReader rsin;
+System.IO.Stream instream;
+byte[] testchar = new byte[256];
+System.Int32 count;
+count = 0;
+string returnrss = "";
+
+Console.WriteLine("readfromrss: Entered");
+tempbuffer.SetLength(0);
+rsssource =
+(System.Net.HttpWebRequest)System.Net.WebRequest.Create(rsssourcelocation);
+wbres = (System.Net.HttpWebResponse)rsssource.GetResponse();
+instream = wbres.GetResponseStream();
+System.Threading.Thread.Sleep(1000);
+count = 1;
+while( !abort && count != 0) 
+{
+ System.Threading.Thread.Sleep(0);
+ count = instream.Read(testchar, 0, 256);
+ if( count == 0 )
+ break;
+ Console.Write("R" + count.ToString());
+ tempbuffer.Write(testchar, 0, count);
+}
+Console.Write(" done reading ");
+
+OUTPUT
+-------
+hova@hovaserver:~/MonoDevelopProjects/RSSR/bin/Debug$ clear && tail log
+[other program info removed here]
+readfromrss: Entered
+R256R256R256R256R256R256R256R256R256R256R256R256R256hova@hovaserver:~/MonoDevelopProjects/RSSR/bin/Debug$
+
+NORMAL OUTPUT
+-------------
+readfromrss: Entered
+R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R256R87
+done reading