-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Disposing WatsonWSServer doesn't free port #38
Comments
Hi @joreg that should do it. Are you by chance running on .NET Core on Linux/Mac? If so we might be running into this (dotnet/runtime#24025) which references this issue (dotnet/corefx#24809) Could you let me know the OS and framework you are using? Edit: my apologies, I thought you were using WatsonWebserver and not WatsonWebsocket. Looking again... |
I just noticed my |
Publishing v2.2.0.3 now. Added |
So it appears I have this partially fixed in v2.2.0.4 (publishing momentarily). Here are the results from
Test 3 should be The same is true with .NET Core 3.1
So I think the issue is the one referenced a few comments ago. On a side note, I've run into an issue where issuing I may have to migrate away from http.sys soon. NuGet v2.2.0.4: https://www.nuget.org/packages/WatsonWebsocket/2.2.0.4 |
perfect. works as expected now. thanks! |
Glad it's working now @joreg ! I'll close this one and follow the issue referenced above for a later fix. Cheers, Joel |
hey joel,
we just discovered that disposing the server doesn't free the port. simple to reproduce using these three lines:
are we missing anything in shutting it down?
The text was updated successfully, but these errors were encountered: