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


           Summary: Socket leak
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


When a socket is instantiated, the native handle is created immediately. This
is wrong. The native handle should be created on-demand. The attached testcase
passes under MS.NET and fails under mono with a "too many files" exception.

Fallout from this is that TcpListener leaks a socket every time you instantiate
one. When Stop is called on TcpListener, the existing socket is closed and a
new one is instantiated, thus creating a leak if a reference to the Listener is
kept.


-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to