diversario / connect-mongostore

MongoDB session store for Connect/Express.
57 stars 16 forks source link

Server Timeouts when connecting to replica set #14

Open ragulka opened 10 years ago

ragulka commented 10 years ago

I have configured MongoStore to connect to a replica set. It seems to connect just fine, but whenever I try to access my site, the requests simply time out. There must be an issue with replica set configuration or handling, because simply connecting to a single localhost DB works fine.

I am trying to connect to a MongoHQ replica set. I have provided the username, password, db.name, db.servers, db.replicaSetOptions (with rs_name and w:1).

Am I missing something, perhaps?

diversario commented 10 years ago

It's probably a bug somewhere but a gist with the code you use would be helpful. I'm gonna have to look into this. In the meanwhile, there is an existing issue with replica sets, I'm not sure if it's related to yours, though.

diversario commented 10 years ago

I setup a replica set in docker and it seems to be working as expected (gist). Obviously, not a real application but maybe you see something in configuration that's different from yours?

diversario commented 10 years ago

This issue may be related to #19. There's a new version 0.1.2 if you care to try!