I have to research a bit more and get a local build of mono building
but there are definitely some places here:
https://github.com/mono/mono/blob/master/mcs/class/System/System.Net/EndPointListener.cs#L85
That can break the async loop causing the entire lsitener to stop
accepting requests until
Since we're talking about the HttpListener..Any thoughts on making
HttpListener more friendly to longer running, blocked tasks.? Such as
Event Queues. Almost all of these edge cases involve reading the input
stream for paths/queryparams/etc, blocking the thread while doing some work
or
Yes exactly my intention. The problem is I am only given http prefixes
in that code.
Consider the case I have an interface 192.168.1.1 and an interface 10.114.1.112
Given a http prefix of http://my.elasticip:8080 which interface should it pick?
As you can see here the prefixes are being used
Miguel,
Would it be best to just take a stab at an alternative interface and
send a PR for discussion?
Greg
On Sun, Apr 26, 2015 at 4:43 PM, Greg Young gregoryyou...@gmail.com wrote:
This is the code handling the prefixes its here
Well, it might be best if you explain what you have in mind, before we
waste time with a pull request.
But either way works.
On Tue, May 19, 2015 at 3:50 PM, Greg Young gregoryyou...@gmail.com wrote:
Miguel,
Would it be best to just take a stab at an alternative interface and
send a PR for
Shouldn't we bind on the interface based on the IP address?
Would that not solve the problem?
miguel
On Tue, May 19, 2015 at 4:00 PM, Greg Young gregoryyou...@gmail.com wrote:
I was thinking a basic code api that allowed the specification of
interface to bind to separately from which
I was thinking a basic code api that allowed the specification of
interface to bind to separately from which prefixes to accept to start
with. The biggest issue here is that the ms api is basically using
httpprefix to mean two very different things.
On Tue, May 19, 2015 at 10:58 PM, Miguel de
Hello Greg,
Is that in HttpListener, or somewhere else?
Miguel
On Fri, Apr 24, 2015 at 12:41 PM, Greg Young gregoryyou...@gmail.com
wrote:
Here is some of the code in question:
IPAddress addr;
if (host == *)
addr = IPAddress.Any;
else if (IPAddress.TryParse(host, out addr) == false){
This is the code handling the prefixes its here
https://github.com/mono/mono/blob/master/mcs/class/System/System.Net/EndPointManager.cs#L43
There is quite a bit of odd code around this in general. I understand
much of it is trying to reach compliance with MS but ...
On Sun, Apr 26, 2015 at 4:40
Here is some of the code in question:
IPAddress addr;
if (host == *)
addr = IPAddress.Any;
else if (IPAddress.TryParse(host, out addr) == false){
try {
IPHostEntry iphost = Dns.GetHostByName(host);
if (iphost != null)
addr = iphost.AddressList[0];
else
push coming. I learned the lesson the hard way long ago to never ever hold
a lock when issuing a call to unknown code. This ended up biting us as some
work was being done on the callback and the accepting of a new request was
being blocked :( I might have 2-3 more as I try to figure out the
Actually, scratch my comment. There are two locks in there. Look more
carefully at the change...
Sadly the bug that it says to fix is private so one cannot extract a
regression/stress test from it.
On 06/12/12 08:08, Greg Young wrote:
push coming. I learned the lesson the hard way long
Did you look at the git history for those changes to see why those changes
have been made?
04c641a21c2ba92c3262948ed1b68eb22c643b11 seens relevant.
On Wed, Dec 5, 2012 at 8:52 AM, Greg Young gregoryyou...@gmail.com wrote:
CheckDisposed ();
if (!listening)
throw new
I did see it (and comment). Thought there might be something more to it.
On Wed, Dec 5, 2012 at 4:05 PM, Rodrigo Kumpera kump...@gmail.com wrote:
Did you look at the git history for those changes to see why those changes
have been made?
04c641a21c2ba92c3262948ed1b68eb22c643b11 seens
Hey Rodrigo, by looking at
https://github.com/mono/mono/commit/04c641a21c2ba92c3262948ed1b68eb22c643b11
as you point out, it would make sense to find the call to
GetContextFromQueue() inside the lock, but maybe ares.Complete() can be
outside for better performance? (And then inside again when
Many thanks, now i know the problem and will find a way for that.
I found this simple app useful:
http://www.codeproject.com/KB/IP/HTTPSDebuggingProxy.aspx
--
View this message in context:
http://mono.1490590.n4.nabble.com/HttpListener-https-bug-tp2527913p2535559.html
Sent from the Mono - Dev
On Wed, 2010-09-08 at 18:10 -0700, salar2k wrote:
Guess it doesn't needed because the issue occurs even with your peace of
program.
And yes i'm working on kind of proxy software. (is that important?)
Yes. The way the browser tries to set up a https connection through the
proxy is by using
On Tue, 2010-09-07 at 22:56 -0700, salar2k wrote:
Thanks for the reply.
I've done the way you did and it works. But that was not my issue.
Try to set browser's proxy to localhost:9667 and browse
https://mail.google.com/mail/ .
You will see it doesn't work and connection resets.
This
Guess it doesn't needed because the issue occurs even with your peace of
program.
And yes i'm working on kind of proxy software. (is that important?)
I'm not sure but I guess the destination website (any ssl enabled website)
doesn't trust the proxy's certificate to communicate with it.
--
I've followed the steps in
http://www.mono-project.com/UsingClientCertificatesWithXSP to create a
root certificate and a client certificate (instead of generating a .p12,
I created a .pvk and a .cer) and then used the client certificate as
my server's.
Then I created a small program (attached
Thanks for the reply.
I've done the way you did and it works. But that was not my issue.
Try to set browser's proxy to localhost:9667 and browse
https://mail.google.com/mail/ .
You will see it doesn't work and connection resets.
This happens only when you're using https in listener.
Change
Hey Casey,
Miguel prepared a fix for this issue (committed by Martin in r107127), and
I've added a unit test based on your repro.
Gert
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Casey
Marshall
Sent: woensdag 25 juni 2008 1:05
To: mono-devel
On Thu, 2008-07-03 at 10:44 +0200, Gert Driesen wrote:
Hey Casey,
Miguel prepared a fix for this issue (committed by Martin in r107127), and
I've added a unit test based on your repro.
Works fine now, both in the test case and the real app.
Thanks!
On Thu, 2008-07-03 at 10:44 +0200, Gert Driesen wrote:
Miguel prepared a fix for this issue (committed by Martin in r107127), and
I've added a unit test based on your repro.
Yeah, I run into the same issue yesterday and Miguel and me finally
figured it out. Closing the output stream did not
Maciej Paszta wrote:
Hello Guys,
I'm developing standalone service provider that uses HttpListener to
serve appropriate requests. I'm having difficulty using Basic
Authentication (not to say that it doesn't work at all). I'm using Mono
1.2.6 and the following testcase was performed on
25 matches
Mail list logo