[Mono-bugs] [Bug 464139] New: Socket leak

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 7 09:48:15 EST 2009


           Summary: Socket leak
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: amcgovern at novell.com
         QAContact: mono-bugs at lists.ximian.com
          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

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