[Mono-bugs] [Bug 48497][Maj] New - Threading Error While Processing Asynchronous WebRequests

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 15 Sep 2003 16:48:46 -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 jason.boutwell@comcast.net.


--- shadow/48497	2003-09-15 16:48:46.000000000 -0400
+++ shadow/48497.tmp.15205	2003-09-15 16:48:46.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 48497
+Product: Mono/Runtime
+Version: unspecified
+OS Details: Red Hat 8 - Mono 0.26
+Status: NEW   
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jason.boutwell@comcast.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Threading Error While Processing Asynchronous WebRequests
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Here is the description of exactly what I am trying to do, complete with
+the exact C# source code I am running (and that is failing):
+Steps to reproduce the problem:
+1. Run the MSDN sample code
+Actual Results:
+The AsycCallback() delegates control to the ReadCallback() method. The
+ReadCallback() method reads 1024 bytes from the stream, processes it, and
+then instantiates the AsyncCallback delegate again. The second call fails,
+the Stream is never processed, and the program hangs, because the allDone
+flag is never set, so the program cannot exit.
+Expected Results:
+The second call to the AsyncCallback delegate should continue processing
+more of the Stream, repeating the process until the end of the stream is
+How often does this happen? 
+Every time the program is run.
+Additional Information:
+The code is sample code from the MSDN site as an example of making
+asynchronous web requests. There appears to be a bug in the Mono threading