[Mono-bugs] [Bug 421589] Incorrect behavior of NetworkStream.Read and/or NetworkStream. DataAvailable

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Sep 28 18:27:12 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=421589

User gonzalo.mono at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=421589#c1


Gonzalo Paniagua Javier <gonzalo.mono at gmail.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |gonzalo.mono at gmail.com
             Status|NEW                                             |RESOLVED
         Resolution|                                                |INVALID




--- Comment #1 from Gonzalo Paniagua Javier <gonzalo.mono at gmail.com>  2008-09-28 16:27:10 MDT ---
The Read() method in NetworkStream and Receive() methods in Socket do NOT read
ahead any data. They only read up to the amount of bytes that you request.

NetworkStream.DataAvailable is meant to be a direct mapping of
"Socket.Available > 0"

If you can provide a test case that reads data from a NetworkStream using a
small buffer and NetworkStream.DataAvailable is false when there's actually
data to be read, feel free to reopen the bug report.

Thanks.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list