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