-
Notifications
You must be signed in to change notification settings - Fork 303
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
Multiple socket opened when authentication fails #62
Comments
I see the same problem & looks like the fix is easy, just add an "else" case in the Connect() method: if (connack.ReturnCode == MqttMsgConnack.CONN_ACCEPTED)
{
// ......
}
else
{
Close();
} |
@s4v4g3 How can I fix this in my application as I can't edit the library reference code? It would be easy to add at line 602 of MqttClient.cs
|
I made a local build of the .NET 4.5 library that you can try out if you like. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sockets are not closed if authentication fails, after some tries application stop responding and must be closed. In the image below there are the threads created after 3 failed auth:
The text was updated successfully, but these errors were encountered: