[Mono-bugs] [Bug 70483][Nor] New - WebConnection responding with a chunked HTTP error blocks until timeout

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 12 Dec 2004 08:32:49 -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=70483

--- shadow/70483	2004-12-12 08:32:49.000000000 -0500
+++ shadow/70483.tmp.29069	2004-12-12 08:32:49.000000000 -0500
@@ -0,0 +1,60 @@
+Bug#: 70483
+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: WebConnection responding with a chunked HTTP error blocks until timeout
+
+Description of Problem:
+Sending two web requests to a server which responds with HTTP errors with
+chunked transfer encoding will block a third web request and finally (after
+the 100 seconds timeout) throw an exception.
+
+Steps to reproduce the problem:
+1. Compile attached testcase (www.bitron.ch is just an example of a web
+server responding with chunked 404 messages)
+2. Run it
+
+Actual Results:
+Processing http://www.bitron.ch/0 ...
+Processing http://www.bitron.ch/1 ...
+Processing http://www.bitron.ch/2 ...
+
+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 36993 of WebConnection.cs
+http://svn.myrealbox.com/viewcvs/trunk/mcs/class/System/System.Net/WebConnection.cs?rev=36993&r1=36298&r2=36993
+
+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.