Skip to content

Configure timeout and retries when testing connection status #623

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

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

sosedoff
Copy link
Owner

Fixes the confusing behavior when previously established connection is broken, prompting user with connection screen on page load. However, when page is simply reloaded, the UI works as expected. This has to do with database driver automatically reestablishing connection in the mean time, after the first failed attempt to get connection details.

Changes will allow us to automatically reconnect within 5 seconds when checking on connection status via /api/connection endpoint.

  • Does not introduce additional delays for local connections.
  • Allows database driver test connection with 5s timeout.
  • Allows automatic retries with 250ms delays, with max 20 retries.

Supersedes #533

@sosedoff sosedoff merged commit 4e3e255 into master Dec 19, 2022
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