[Mono-dev] NancyFX self hosting (HttpListener) locking up on linux
keks9n at gmail.com
Sun Aug 4 07:12:09 UTC 2013
> Hi there.
> I'm running the NancyFX web framework in self hosting mode which is using HttpListener which basically means I deploy an executable and run it and it will start a webserver on localhost on a TCP port of choice. I then use nginx to proxy to it.
> I first ran my executable on my macbook pro and bombarded it with jmeter and it coped fine and no issues.
> I then deployed on my debian wheezy 64 bit linux box running on top of KVM using mono 3.2.0 and performed the same jmeter experiment. It locks up fairly quickly and wont take any new requests. I've tried using both sgen and boehm but they behave similarly although it seems to lock up faster when using sgen. I also tried enabling MONO_DISABLE_AIO but it doesn't make any difference.
> Anyone had similar issues?
I also experienced problems with HttpListener before (on Mono 2.6 and
2.10). Forcing mono to print stacktraces with SIGQUIT signal revealed
the fact that HttpListener hungs somewhere in
But in my case it works pretty fine behind nginx.
More information about the Mono-devel-list