diff --git a/lib/pancakes.mongo.adapter.js b/lib/pancakes.mongo.adapter.js
index <HASH>..<HASH> 100644
--- a/lib/pancakes.mongo.adapter.js
+++ b/lib/pancakes.mongo.adapter.js
@@ -53,7 +53,10 @@ MongoAdapter.modelCache = {};
  */
 MongoAdapter.connect = function connect(dbUri, debugFlag, mongos) {
     var deferred = Q.defer();
-    var opts = {};
+    var opts = {
+        server: { socketOptions: { keepAlive: 1, connectTimeoutMS: 30000 } },
+        replset: { socketOptions: { keepAlive: 1, connectTimeoutMS : 30000 } }
+    };
 
     if (mongos) {
         opts.mongos = true;
Adding socket options for mongo connection