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

Handle too many heart missing with reconnection #394

Merged
merged 3 commits into from
Oct 25, 2024

Conversation

Gsantomaggio
Copy link
Member

@Gsantomaggio Gsantomaggio commented Oct 17, 2024

Close from normal to Unexpected.
Fixes: #393

Changes:

Remove the update status form the the Dispose() function.
It is unnecessary since the disposal can be called only from the Client close() function
where the status is set.

Add a function to convert the connection close reason string to the Reliable.ChangeStatusReason Enum.
This mapping should be improved to version 2.0, where we can introduce breaking changes.
In version 1.x, we need the conversion function.

close from normal to Unexpected.
Fixes: #393

Signed-off-by: Gabriele Santomaggio <[email protected]>
@Gsantomaggio
Copy link
Member Author

@bastl98 can you please try the PR? the client should reconnect producer and consumer

@lukebakken lukebakken self-requested a review October 17, 2024 19:26
@lukebakken lukebakken self-assigned this Oct 17, 2024
@lukebakken lukebakken added this to the 1.8.9 milestone Oct 17, 2024
Signed-off-by: Gabriele Santomaggio <[email protected]>
to the Connection class.
Remove the update status form the the Dispose() function.
It is not necessary since the dispose can be called only from the Client close() function
where the status is set.

Add a function to convert the connetion close reason string to the Reliable.ChangeStatusReason Enum.
This mapping should be improved to the version 2.0 where we can introduce some breaking changes.
In the version 1.x we need the conversion function.

Signed-off-by: Gabriele Santomaggio <[email protected]>
@Gsantomaggio Gsantomaggio changed the title Change the connection Handle too many heart missing with reconnection Oct 25, 2024
@Gsantomaggio Gsantomaggio merged commit 3ed2978 into main Oct 25, 2024
2 checks passed
@Gsantomaggio Gsantomaggio deleted the reconnect_when_missing_heartbeat branch October 25, 2024 07:56
@Gsantomaggio Gsantomaggio mentioned this pull request Oct 25, 2024
6 tasks
Copy link
Contributor

@lukebakken lukebakken left a comment

Choose a reason for hiding this comment

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

Great!

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.

No Connection Resilience when missing too many heartbeats
2 participants