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

Fix bug in race condition between the shutdown of a client and the connect of another with same clientId #561

Merged
merged 1 commit into from
Dec 28, 2020

Conversation

andsel
Copy link
Collaborator

@andsel andsel commented Dec 26, 2020

This PR fixes #553 (comment) when a thread is processing the loose of client connection and start the clean up of session from the registry, another thread is processing the CONNECT from the same client (with same clientId), this second thread has to retrieve the connection from the registry in only one step, avoiding to do a check-and-get but doing only a get, then checking for presence or not

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

Successfully merging this pull request may close these issues.

NullPointerException caused by async connect/disconnect processing
1 participant