-
Notifications
You must be signed in to change notification settings - Fork 9
Reconnect automatically #2
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
Comments
I have this lib running in production for 2 years now. I never had connections time out between servers in the same data center. I guess its a very rare event? |
Maybe db_postgres does auto reconnect? |
@treeform it really depend on the reliability of the network and if the server is restarted. Yet, detecting stale connections and reconnecting is usually a basic requirement for database libraries. |
Disconnects can also be caused by the server dropping older clients. |
Uh oh!
There was an error while loading. Please reload this page.
Thanks for developing pg.
The current implementation does not handle reconnecting to the database in case of timed out or broken connections. Any workaround?
Also see nim-lang/db_connector#9
The text was updated successfully, but these errors were encountered: