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 reconnecting to remote dbus #10

Merged
merged 7 commits into from
Feb 28, 2018
Merged

Conversation

tkurki
Copy link
Contributor

@tkurki tkurki commented Feb 23, 2018

  • retry on initial connection
  • retry on failed connection (Venus turned off for example)

To prepare for retry implementation make dbus connection
return a Promise, which allows handling of async success
when receiving connect event and async failure when
receiving error.
Easier testing without server from command line.
Retry forever with exponential backoff up to 30 seconds.
@tkurki tkurki changed the title [WIP] add reconnecting to remote dbus Add reconnecting to remote dbus Feb 24, 2018
Is is possible that the plugin was stopped
while the connection was being established, so
make sure we are still in started state before
acting on the started connection.
@sbender9 sbender9 merged commit 5ee75fc into sbender9:master Feb 28, 2018
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