aboutsummaryrefslogtreecommitdiff
path: root/node_modules/mongodb/test9.js
diff options
context:
space:
mode:
authorWaref Haque <warefhaque@Warefs-MacBook-Pro.local>2016-07-17 20:24:49 +0000
committerWaref Haque <warefhaque@Warefs-MacBook-Pro.local>2016-07-17 20:24:49 +0000
commite58943c3e620f05937656fdde032254ae3373f36 (patch)
tree77072aa55efa1753c8c8ae584669cf3589551268 /node_modules/mongodb/test9.js
parent55098c767afb0b119aaeda330eaedba5c1a87dc3 (diff)
redirect commit
Diffstat (limited to 'node_modules/mongodb/test9.js')
-rw-r--r--node_modules/mongodb/test9.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/node_modules/mongodb/test9.js b/node_modules/mongodb/test9.js
new file mode 100644
index 0000000..c6cb6bc
--- /dev/null
+++ b/node_modules/mongodb/test9.js
@@ -0,0 +1,20 @@
+var mongodb = require("./"),
+ CoreConnection = mongodb.CoreConnection,
+ CoreServer = mongodb.CoreServer;
+
+var uri = "mongodb://c649.candidate.63.mongolayer.com:10649,c491.candidate.64.mongolayer.com:10491/app?replicaSet=set-56be39f36887897ebf0037db";
+// mongostat -u foo -p bar --authenticationDatabase driver-test --host rs-ds021331/ds021331-a0.mlab.com:21331,ds021331-a1.mlab.com:21331 --discover
+// var options = {server: {socketOptions: {connectTimeoutMS: 5000, socketTimeoutMS: 15000}}}
+// var interval = 100;
+// var total = 1000;
+
+// // console.dir(CoreConnection)
+// CoreConnection.enableConnectionAccounting();
+// CoreServer.enableServerAccounting();
+
+// var openThenClose = function(count){
+ var MongoClient = mongodb.MongoClient;
+
+ MongoClient.connect(uri, {}, function(err, db) {
+ console.dir(err)
+ });