[Mono-bugs] [Bug 75526][Nor] Changed - [PATCH] StreamReader blocks on reading too much
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jan 25 02:29:32 EST 2007
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 gonzalo at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=75526
--- shadow/75526 2007-01-23 21:14:19.000000000 -0500
+++ shadow/75526.tmp.14500 2007-01-25 02:29:32.000000000 -0500
@@ -222,6 +222,14 @@
------- Additional Comments From miguel at ximian.com 2007-01-23 21:14 -------
Notice that the documentation states:
"This method returns after either the number of characters specified
by the count parameter are read, or the end of the file is reached".
+
+------- Additional Comments From gonzalo at ximian.com 2007-01-25 02:29 -------
+There might be a trick to make this thing work: in ReadBuffer() we
+need to set a flag when the number of bytes read is less than the
+number of bytes requested. That means that the next read could be the
+end of the file (or could not, we won't know until we read again).
+
+I'll attach a patch as soon as I test it.
More information about the mono-bugs
mailing list