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

Automatically reconnect to database #259

Merged
merged 3 commits into from
Aug 3, 2021

Conversation

Tomas2D
Copy link
Contributor

@Tomas2D Tomas2D commented Aug 3, 2021

Hey - thanks for spending time working on this library, it's great!

This pull request aims to fix the following issues #195, #138.

The current solution does not work because we are resetting the socket and never reassign him.
The next problem was with bounded event handlers to socket, they were firing infinitely. The close event was fired and an immediately new connection was created, again, again and again.

The proposed solution fixes mentioned issues and offer a possible setting of the reconnection interval. Tested locally by simulating connection drops (force killing Firebird server).

Thanks.

@mariuz mariuz merged commit 0ae2634 into hgourvest:master Aug 3, 2021
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.

None yet

2 participants