https://bugzilla.novell.com/show_bug.cgi?id=337371#c337368

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

Reply via email to