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 bogus disconnected check #3402

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

pepone
Copy link
Member

@pepone pepone commented Jan 22, 2025

No description provided.

@@ -606,16 +606,16 @@ SessionI::disconnected(const ConnectionPtr& connection, exception_ptr ex)
// Ignore already destroyed.
return false;
}
else if (connection && _connection != connection)
{
// Ignore the session has already reconnected using a new connection.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is incorrect to check this before verifying if the session is disconnected.

If _session is nullptr because the session is disconnected, we can still receive a disconnected request on a new connection from a failing recovery attempt. In other words, this connection comparison does not ensure that the session has reconnected.

@pepone pepone merged commit fd9f9c8 into zeroc-ice:main Jan 22, 2025
23 of 24 checks passed
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.

3 participants