unosquare / embedio

A tiny, cross-platform, module based web server for .NET
http://unosquare.github.io/embedio
Other
1.47k stars 176 forks source link

Crash the webserver and restart the main application #597

Open gangwar1 opened 3 months ago

gangwar1 commented 3 months ago

Describe the bug I have an maui application with target framework .net 8 android. In this application I am using a this embedio webserver in a separate thread with one controller as per document. Now in that api's we doing some operations in thiose operations some are log running so we agin doing those operations in new thread meanwhile we returned the 200 response for that api. If we have some exceptions in long running task it raise crash the server even we have try catch handling in that thread . Due to this my main maui application is restart by automatically and when we try to access the server it will not access. Even we try to run again it give socket exceptions permission denied.

Smartphone (please complete the following information):