[Mono-bugs] [Bug 74161][Nor] Changed - XmlTextReader.Read blocked when reading Xml from Network Stream
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 5 May 2005 07:34:34 -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 atsushi@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74161
--- shadow/74161 2005-05-02 09:12:33.000000000 -0400
+++ shadow/74161.tmp.25018 2005-05-05 07:34:33.000000000 -0400
@@ -1,12 +1,12 @@
Bug#: 74161
Product: Mono: Class Libraries
Version: unspecified
OS: SUSE 9.2
OS Details:
-Status: NEEDINFO
+Status: REOPENED
Resolution:
Severity: Unknown
Priority: Normal
Component: Sys.XML
AssignedTo: mono-bugs@ximian.com
ReportedBy: anarchyco@hotmail.com
@@ -206,6 +206,13 @@
while loop in StreamReader.cs is inappropriate, since it will change
the behaviour of that method.
The Stream class allows the same Read method to return less than count
characters, so I'm erring towards suggesting using a different type of
Stream to read the data.
+
+------- Additional Comments From atsushi@ximian.com 2005-05-05 07:34 -------
+Hmm, ok it sounds different problem. But it does not describe the
+reason that the example code posted above does _not_ block under
+MS.NET. Anyways am attaching the patch that uses nonblocking
+StreamReader (mostly copied from StreamReader + suggested change).
+