[Mono-bugs] [Bug 70484][Nor] New - Multiple successive web requests blocks until timeout

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 12 Dec 2004 08:48:53 -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 j@bitron.ch.

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

--- shadow/70484	2004-12-12 08:48:53.000000000 -0500
+++ shadow/70484.tmp.29271	2004-12-12 08:48:53.000000000 -0500
@@ -0,0 +1,59 @@
+Bug#: 70484
+Product: Mono: Class Libraries
+Version: 1.0
+OS: GNU/Linux [Other]
+OS Details: paldo (Linux 2.6, NPTL)
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: j@bitron.ch               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Multiple successive web requests blocks until timeout
+
+Description of Problem:
+Sending about twenty web requests responding with HTTP errors will block
+further web requests and finally (after the 100 seconds timeout) throw an
+exception.
+
+Steps to reproduce the problem:
+1. Compile attached testcase
+2. Run it
+
+Actual Results:
+Counting up to 21 and then after 100 seconds hanging
+
+Unhandled Exception: System.Net.WebException: The request timed out
+in [0x00099] (at
+/home/cvs/1-mono/mcs/class/System/System.Net/HttpWebRequest.cs:696)
+System.Net.HttpWebRequest:EndGetResponse (System.IAsyncResult)
+in [0x0002d] (at
+/home/cvs/1-mono/mcs/class/System/System.Net/HttpWebRequest.cs:709)
+System.Net.HttpWebRequest:GetResponse ()
+in [0x00009] (at
+/home/cvs/1-mono/mcs/class/System/System.Net/WebClient.cs:127)
+System.Net.WebClient:DownloadData (string)
+in <0x00058> (wrapper remoting-invoke-with-check)
+System.Net.WebClient:DownloadData (string)
+in <0x000a8> WebClientTestcase:Main ()
+
+Expected Results:
+No exception occuring at all.
+
+How often does this happen? 
+Always
+
+Additional Information:
+I've tracked it down to the changes in revision 37075 of HttpWebRequest.cs
+http://svn.myrealbox.com/viewcvs/trunk/mcs/class/System/System.Net/HttpWebRequest.cs?rev=37075&r1=35366&r2=37075
+
+This commit (and problem) is in mono 1.0.5 and 1.1.3. Mono 1.0.4 and 1.1.2
+both worked fine.
+
+Note: If the web server responds with chunked transfer encoding, this bug
+doesn't get hit as bug 70483 will get hit first.