Skip to content

Instantly share code, notes, and snippets.

@hasantayyar
Created September 6, 2017 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasantayyar/50981bef30056e777934f81886b0aba9 to your computer and use it in GitHub Desktop.
Save hasantayyar/50981bef30056e777934f81886b0aba9 to your computer and use it in GitHub Desktop.
meteor - workaround that kills the instance, if the reconnect has failed.
MongoInternals.defaultRemoteCollectionDriver().mongo.db.s.topology.on('reconnectFailed', err => {
console.error(err.stack)
process.exit(1)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment