[Mono-bugs] [Bug 66858][Blo] New - 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:16:28 -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.7280	2004-09-26 15:16:28.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 66858
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Debian unstable using Mono 1.0.1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: hova__0@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: HttpWebResponse ResponseStream blocks indefinitely when trying to Read from it
+
+Description of Problem:
+*Using Mono v1.0.1 Debian's unstable packages
+This happens most with mis-behaving webhosts which may send incorrect data
+(such as the one I have the unfortunate task of working with) and/or timeout.  
+
+Read()ing from the Response Stream of a HttpWebResponse may block
+indefinitely.  This is using a sane buffer of 256 bytes.
+
+Steps to reproduce the problem:
+1. Locate a slow,laggy,unpredictable webhost
+2. Generate a request and try to Read() the response stream via
+HttpWebResponse.GetResponseStream()
+3. Continue #2 until it blocks indefinitely.
+
+Actual Results:
+Program hangs.
+
+Expected Results:
+Timeout or Exception should be thrown
+
+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.