[Mono-bugs] [Bug 82836][Nor] Changed - UnixStream.Write throw an exception on an empty byte[]

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Sep 13 11:34:43 EDT 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 jonpryor at vt.edu.


--- shadow/82836	2007-09-13 10:38:52.000000000 -0400
+++ shadow/82836.tmp.16480	2007-09-13 11:34:43.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 82836
 Product: Mono: Class Libraries
 Version: 1.2
+OS: unknown
 OS Details: 
 Status: NEW   
+Severity: Unknown
 Priority: Normal
 Component: Mono.POSIX
 AssignedTo: miguel at ximian.com                            
 ReportedBy: stephane at delcroix.org               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -26,6 +26,16 @@
 ------- Additional Comments From stephane at delcroix.org  2007-09-13 10:38 -------
 Created an attachment (id=20034)
 test case
+------- Additional Comments From jonpryor at vt.edu  2007-09-13 11:34 -------
+What should be the correct behavior with a 0-length buffer?
+More specifically, should write(2) still be called if the buffer
+contains no data, or should write(2) be skipped?
+The write(2) man page suggests that a `count' of 0 does nothing, so
+skipping the write(2) call would probably work...

More information about the mono-bugs mailing list