Skip to content

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

Closed
vkarpov15 wants to merge 1 commit into
mongodb:3.0from
vkarpov15:patch-2
Closed

fix(mongos): bubble up error events after the first one#1685
vkarpov15 wants to merge 1 commit into
mongodb:3.0from
vkarpov15:patch-2

Conversation

@vkarpov15

Copy link
Copy Markdown
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
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

1 participant