[Mono-bugs] [Bug 45870][Maj] Changed - WebClient.OpenRead freezes when called from System.Web

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 11 Jul 2003 09:11:54 -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 blackhawk@ivanhawkes.com.

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

--- shadow/45870	Fri Jul 11 09:01:20 2003
+++ shadow/45870.tmp.15157	Fri Jul 11 09:11:54 2003
@@ -66,6 +66,37 @@
 
 It would be nice if we could find a work around, especially for XML.
 
 ------- Additional Comments From bmaurer@users.sf.net  2003-07-11 09:01 -------
 I just tried this from an IHttpHandler, and it freezes just the same.
 So this is *not* aspx, but System.Web.
+
+------- Additional Comments From blackhawk@ivanhawkes.com  2003-07-11 09:11 -------
+After a mammoth debugging session with nothing but trusty olf
+WriteLine at my
+side I have some final and useful info on why the file reads are
+failing. In
+FileWebRequest.cs inside the method:
+
+public override IAsyncResult BeginGetResponse (AsyncCallback callback,
+object
+state)
+
+there is a statement that is meant to be executed asynchronously with
+the rest
+of the code. i.e.
+
+return c.BeginInvoke (callback, state);
+
+This should run the GetResponseInternal () function asynchronously and
+provide
+an IAsyncResult to sync with. It is this function that is attempting
+to read
+the file. Sadly, the thread doesn't seem to launch (or whatever is
+meant to
+happen), the function doesn't start to execute until *after* the
+timeout has
+occurred, and so the file is never returned.
+
+Hopefully someone familiar with the insides of Mono can cast some
+light and
+bug fixes on this one ;->