Created
June 19, 2013 03:34
-
-
Save donwb/5811515 to your computer and use it in GitHub Desktop.
mongodb keepalive for Azure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongoose.connect('mongodb://' + settings.user + ':' + settings.pass + '@' + settings.host + ':' + settings.port + '/' + settings.name, {server: {socketOptions: {keepAlive: 1}}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment