[Mono-bugs] [Bug 33029][Blo] New - XmlTextReader.Read() on NetworkStream does nothing.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
30 Oct 2002 14:10:49 -0000


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 ben@roadrunner.uk.com.

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

--- shadow/33029	Wed Oct 30 09:10:49 2002
+++ shadow/33029.tmp.11708	Wed Oct 30 09:10:49 2002
@@ -0,0 +1,55 @@
+Bug#: 33029
+Product: Mono/Class Libraries
+Version: unspecified
+OS: SuSE 8.0
+OS Details: mono 0.16 on SuSE Linux 8.0
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ben@roadrunner.uk.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XmlTextReader.Read() on NetworkStream does nothing.
+
+(Note:- This is my first Mono bug, I don't want to cause offence if the
+following is missplaced or just stupid :)
+
+Mono 0.16
+
+Description of Problem:
+
+The XmlTextReader.Read() doen't do anything on a TCP/IP stream. 
+go-mono.com surgests this method is fully working.  Code compiled under
+VB.NET on Win2000.
+
+Steps to reproduce the problem:
+
+1. Define an incomming TCP/IP connection, and get the Network Stream
+2. Define an XmlTextReader as New XmlTextReader(NetworkStream)
+3. Call the XmlTextReader.Read()
+
+Actual Results:
+
+Call returnes 'False' immediatelly.
+
+Expected Results:
+
+Experience from Win2000 surgests that the Read() should wait on TCP/IP
+stream indefinitelly for a complete incomming XML Node, then return True. 
+Or throw one of these exceptions, if for instance the other host has
+disconnected:
+
+System.IO.IOException
+SocketException
+Exception
+
+Or an XML exception if the content is in error.
+
+How often does this happen? 
+
+Every time.