[Mono-bugs] [Bug 455894] New: UdpClient.Close triggers an NRE from a blocked UdpClient. Receive call

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Dec 3 01:28:23 EST 2008


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


           Summary: UdpClient.Close triggers an NRE from a blocked
                    UdpClient.Receive call
           Product: Mono: Class Libraries
           Version: 2.0.x
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: cdhowie at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


If UdpClient.Close() is called from one thread while UdpClient.Receive() is
blocking from another, the latter call will throw a NullReferenceException. 
MS.NET throws a SocketException, and MSDN seems to indicate that this should be
the case.

I have attached a sample that may be used to test this problem.  If required I
can write a proper NUnit test around it.


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