Node.js based forum software built for the modern web
add mongodb connection options #3670
barisusakli92fa9fecb6fc
diff --git a/src/database/mongo.js b/src/database/mongo.jsindex 9bc321703b..6e3af3ac64 100644--- a/src/database/mongo.js+++ b/src/database/mongo.js@@ -84,6 +84,9 @@var connOptions = {server: {poolSize: parseInt(nconf.get('mongo:poolSize'), 10) || 10,+ socketOptions: { autoReconnect: true, keepAlive: nconf.get('mongo:keepAlive') || 0 },+ reconnectTries : 3600,+ reconnectInterval : 1000,},};