I use the HttpServer in a plugin than can be dynamically loaded and unloaded. When unloading the WebServer plugin, I get sometimes an unhandled SemaphoreFullException.
I had to modify the code in the following class:
Griffin.Net.Channels.TcpChannel in method OnSendCompleted()
Needs an other solution. The following code does not terminate the thread and leads to other problems.
The easiest solution is to disable the exception for Griffin.Core assembly.
I use the HttpServer in a plugin than can be dynamically loaded and unloaded. When unloading the WebServer plugin, I get sometimes an unhandled SemaphoreFullException.
I had to modify the code in the following class: Griffin.Net.Channels.TcpChannel in method OnSendCompleted()
catch (Exception ex) { try { _sendLock.Release(); } catch(SemaphoreFullException) { } OnChannelFailure(ex); }
Thank you for adding this changes in the next nuget release :-)