Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with unhandled SemaphoreFullException #87

Closed
bhadorn opened this issue May 27, 2018 · 1 comment
Closed

Problem with unhandled SemaphoreFullException #87

bhadorn opened this issue May 27, 2018 · 1 comment

Comments

@bhadorn
Copy link

bhadorn commented May 27, 2018

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 :-)

@bhadorn
Copy link
Author

bhadorn commented May 27, 2018

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.

@bhadorn bhadorn closed this as completed May 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant