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

Handling broker disconnection and reconnection #29

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

pfayolle
Copy link
Collaborator

Proper handling of disconnect events.
Changed the connect function to connect_async to avoid exiting on a failed first connect attempt.
Moved all connect/disconnect logs to the user callback functions.
Added an automatic reconnect delay (progressive from 1 to 10s).
Removed program exit on disconnect event.

Changed the connect function to connect_async to avoid
exiting on a failed first connect attempt.
Moved all connect/disconnect logs to the user callback functions.
Added an automatic reconnect delay (progressive from 1 to 10s).
Removed program exit on disconnect event.
Copy link
Collaborator

@nvincent-vossloh nvincent-vossloh left a comment

Choose a reason for hiding this comment

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

Looks good.

@pfayolle pfayolle merged commit 92033b2 into main Jan 22, 2024
2 checks passed
@pfayolle pfayolle deleted the connect_rework branch January 22, 2024 11:05
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.

2 participants