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

Clear the connectionPromise upon close or error #2314

Merged
merged 1 commit into from
Jul 18, 2016

Conversation

flovilmart
Copy link
Contributor

Adds handlers on db.close and db.error in order to clear the connection from the server. That prevents the server from being in a fully unusable state after a connection error event and let the forces the driver to create a new connection upon the next call

@skinp
Copy link
Contributor

skinp commented Jul 18, 2016

LGTM

@flovilmart flovilmart merged commit bae19f2 into master Jul 18, 2016
@flovilmart flovilmart deleted the mongodb-connections-errors branch July 18, 2016 15:51
rsouzas pushed a commit to back4app/parse-server that referenced this pull request Mar 15, 2017
rsouzas pushed a commit to back4app/parse-server that referenced this pull request Mar 16, 2017
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