[Mono-bugs] [Bug 419092] New: Socket.Select() behaviour difference between linux and osx.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Aug 21 03:30:43 EDT 2008


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


           Summary: Socket.Select() behaviour difference between linux and
                    osx.
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: Other
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: lucas.meijer at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development


Created an attachment (id=234642)
 --> (https://bugzilla.novell.com/attachment.cgi?id=234642)
example program

It looks like Socket.Select() behaves differently on osx <> linux in the case
where a socket instance is placed in both the readlist, and the errorlist.
On osx, after having called socket.Listen(),  calling Socket.Select() with the
socket instance being in the read and errorlist,  the select call will return
once a connection is established, however it will return with empty readlist
and errorlists.

on linux, the resulting readlist is filled with the socket instance. (Which I
believe is the correct behaviour)

Below is a demo program that exhibits this behaviour for me.

Instructions to run:
normal compile & run, followed by:
telnet localhost 5656 in a different terminal.

Bye, Lucas.

PS This is my first bug report, please be gentle :)


-- 
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