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

Crash the app or reconnect when connection is lost to the message broker #9

Open
AlexGustafsson opened this issue Dec 22, 2020 · 0 comments
Labels
enhancement New feature or request priority:medium This issue should likely be considered soon

Comments

@AlexGustafsson
Copy link
Owner

Just as with #3, the App Delegate has error handling for when the connection to the message broker is lost. Currently the error is just logged. Proper error handling should be implemented to either crash the app or try to reconnect.

This seems to occur relatively often when running an application, resulting in no executor being registered.

self.connection.interruptionHandler = {
      logger.info("Disconnected from broker (interrupted)")
    };

    self.connection.invalidationHandler = {
      logger.info("Disconnected from broker (invalidated)")
    };
@AlexGustafsson AlexGustafsson added enhancement New feature or request priority:medium This issue should likely be considered soon labels Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:medium This issue should likely be considered soon
Projects
None yet
Development

No branches or pull requests

1 participant