node.js - mongojs [Error: connection closed ] -


I am using mognojs version 0.7.2 and socket.io, and works fine, but when I query Does not the database for a while, possibly the connection time may expire, and when I try to recreate any query, the callback response is [error: connection closed]

I `M to add auto_reconnect, but I have the same error

  var db = require (" mongojs "). Connect (databaseUrl, archive, {auto_reconnect: true});   

Thank you for your help.

In version 0.7.7 there is no connection to the connection (server) option for the original mangodb driver layer Not forwarded. Your auto_reconnect is meaningless here, I am looking for solution to this problem

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -