[Mono-bugs] [Bug 337371] New: HttpListener keeps listening ever after disposed

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Oct 27 09:10:07 EDT 2007


           Summary: HttpListener keeps listening ever after disposed
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: 32bit
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: dbera.web at gmail.com
         QAContact: mono-bugs at ximian.com
          Found By: ---

using System;
using System.Net;

class abcd {
        public static void Main ()
                f ();
                g ();
                f ();

        static void g ()

                Console.Read ();

        static void f ()
                using (HttpListener l = new HttpListener ()) {
                        l.Prefixes.Add ("http://localhost:4000/");
                        l.Start ();
                        l.Stop ();

When the program pauses at the Console.Read (), use netstat -l to verify that
the port 4000 is still opened for listening.

This with #337368 makes it impossible to create a webserver which can
started/stopped/restarted at will.

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