[Mono-bugs] [Bug 344163] New: HttpListener - Not accepting local connections
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Nov 26 17:26:05 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=344163
Summary: HttpListener - Not accepting local connections
Product: Mono: Class Libraries
Version: 1.2.5
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at ximian.com
ReportedBy: alan.mcgovern at gmail.com
QAContact: mono-bugs at ximian.com
Found By: ---
using System;
using System.Net;
The listener is listening at the loopback address and the request is sent to
localhost.. When initiating the webrequest on windows under .NET, it succeeds.
On windows under mono, the connection is never received.
namespace TCP
{
class Tester
{
static void Main(string[] args)
{
string location = string.Format("http://{0}:{1}/",
IPAddress.Loopback.ToString(), 10000);
HttpListener listener = new HttpListener();
listener.Prefixes.Add(location);
listener.Start();
IAsyncResult listenerResult = listener.BeginGetContext(null, null);
WebRequest webRequest =
WebRequest.Create("http://localhost:10000");
IAsyncResult requestResult = webRequest.BeginGetResponse(null,
null);
HttpListenerContext context =
listener.EndGetContext(listenerResult);
Console.WriteLine("Got the request");
Console.ReadLine();
}
}
}
--
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