[Mono-bugs] [Bug 59632][Nor] New - Socket.Select fails if one of its ILists is empty.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 5 Jun 2004 10:53:35 -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 1@234.cx.
http://bugzilla.ximian.com/show_bug.cgi?id=59632
--- shadow/59632 2004-06-05 10:53:35.000000000 -0400
+++ shadow/59632.tmp.11026 2004-06-05 10:53:35.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 59632
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details: Fedora Core
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: 1@234.cx
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Socket.Select fails if one of its ILists is empty.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Socket.Select fails if one of its ILists is empty.
+
+Steps to reproduce the problem:
+
+Pass Socket.Select an IList which refers to an empty collection. You could
+pass Socket.Select no file descriptors at all; for example:
+
+Socket.Select (readers, null, null, 1000000);
+
+where readers is an empty collection. Alternatively you could give it some
+file descriptors but with one empty list:
+
+Socket.Select (readers, writers, null, 1000000);
+
+where readers contains a number (> 0) of file descriptors, while writers is
+empty.
+
+Actual Results:
+
+A null reference exception is thrown.
+
+Expected Results:
+
+Socket.Select should regard the empty IList as simply passing no file
+descriptors. If all the lists are empty, it should delay for the time
+given in the last parameter, then return. If some lists are non-empty, it
+should regard the empty lists as equivalent to passing null.
+
+How often does this happen?
+
+Always.
+
+Additional Information:
+
+This bug occurs with beta 2.