Does mongoDB have reconnect issues or am i doing it wrong?

后端 未结 6 1438
被撕碎了的回忆
被撕碎了的回忆 2020-12-04 07:53

I\'m using nodejs and a mongoDB - and I\'m having some connection issues.

Well, actually \"wake\" issues! It connects perfectly well - is super fast and I\'m general

6条回答
  •  执笔经年
    2020-12-04 08:52

    I had a similar problem being disconnected from MongoDB periodically. Doing two things fixed it:

    1. Make sure your computer never sleeps (that'll kill your network connection).
    2. Bypass your router/firewall (or configure it properly, which I haven't figured out how to do yet).

提交回复
热议问题