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

fix(mongos): bubble up error events after the first one #1685

Closed
wants to merge 1 commit into from
Closed

fix(mongos): bubble up error events after the first one #1685

wants to merge 1 commit into from

Conversation

vkarpov15
Copy link
Contributor

Re: Automattic/mongoose#6249. Not really sure why this is a once() instead of an on(), but the current behavior makes it so that subsequent close events never make it up to the client, so db.on('close') will never get fired if a mongos dies for the 2nd time. I wanted to double check that this wasn't completely off base before I put in the effort to write a test.

Re: Automattic/mongoose#6249. Not really sure why this is a `once()` instead of an `on()`, but the current behavior makes it so that subsequent `close` events never make it up to the client, so `db.on('close')` will never get fired if a mongos dies for the 2nd time.
@vkarpov15
Copy link
Contributor Author

Gonna close this one for now since its stale, I'll open up a new one later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant