Ssl: Nancyfx Selfhost Mono Linux (Pi)

NancyFX stops handling requests from multiple clients after a while on Linux Mono

I know this is a fairly old question but it's possible that your issue pertains to a timeout lock that was reported and patched in the v2.0 development branch. They haven't backported it to the stable v1.4.x branch yet but the patch looks pretty trivial to me so you could make your own fork.

The behaviour you described is the same as the behaviour I have seen so I believe we experienced the same issue. Unfortunately it's difficult to say whether this fixed the problem but I hope this helps somebody in the future!

Update: Since patching the latest Nancy 1.4.x with the patch linked above, we have not seen any further intermittent timeouts in our production environment in the last 4 months or so.

Nancy Mono Self-Host won't start on port 80

This is bug in Mono HttpListener I created pull request here: https://github.com/mono/mono/pull/891
Unfortunately I did not find workaround I will try to find robust workaround in Nancy since versions releases are more frequent.

Nancyfx localization

There really isn't a question in your post so I'm going to have to guess a bit and assume that you're not getting any exception but rather you're not seeing the "HELO!" in your view

Simply implementing a new ResourceBasedTextResource class is not enough. This is a core component and as such you are going to explicitly have to tell Nancy to use it. You do this by overriding the InternalConfiguration property of your Bootstrapper and tell Nancy to use your implementation instead

You can see it in the DemoBootstrapper of the demo that is linked from that wiki page https://github.com/NancyFx/Nancy/blob/8970ac9d6c7cf46e6060f0b83117c19fa18085c2/src/Nancy.Demo.Razor.Localization/DemoBootstrapper.cs#L11

Also, if you are not going to use resource files, then you should look into inheriting from ITextResource interface instead. It's a simple interface so it should be straight forward.

HTH



Related Topics



Leave a reply



Submit