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

Add on_connect_fail() to ClientExt #95

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

UkoeHB
Copy link
Collaborator

@UkoeHB UkoeHB commented Oct 16, 2023

Problem

The client connection loop executes continuously until either the client connects or the max connection attempts are exhausted. However, it may be useful to abort mid-way, for example if an auth token you are using for connection attempts has expired.

Solution

Add ClientExt::on_connect_fail() for custom handling of connection attempt failures.

@UkoeHB UkoeHB merged commit 390ec91 into gbaranski:master Oct 16, 2023
3 checks passed
@UkoeHB UkoeHB deleted the on_connect_fail branch October 16, 2023 17:53
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.

1 participant