[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.


--- 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   
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: j@bitron.ch               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+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
+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
+System.Net.HttpWebRequest:EndGetResponse (System.IAsyncResult)
+in [0x0002d] (at
+System.Net.HttpWebRequest:GetResponse ()
+in [0x00009] (at
+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? 
+Additional Information:
+I've tracked it down to the changes in revision 37075 of HttpWebRequest.cs
+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.