em-mongo
em-mongo copied to clipboard
EventMachine MongoDB Driver (based off of RMongo)
My understanding is that when `EM::Mongo::Connection` is instantiated with the `timeout` parameter that an error should be raised if a connection cannot be established in that time. It looks like...
Whenever EM::stop is run, the unbind handler seems to produce this stacktrace: ``` /Users/wolfram/.rvm/gems/ruby-1.9.3-p448@handl-server/gems/em-mongo-0.4.3/lib/em-mongo/collection.rb:739:in `block in safe_send': undefined method `docs' for :disconnected:Symbol (NoMethodError) from /Users/wolfram/.rvm/gems/ruby-1.9.3-p448@handl-server/gems/em-mongo-0.4.3/lib/em-mongo/connection.rb:186:in `call' from /Users/wolfram/.rvm/gems/ruby-1.9.3-p448@handl-server/gems/em-mongo-0.4.3/lib/em-mongo/connection.rb:186:in `block in...
You chaps might be interested in a patch I made for em-mongo to make it's API synchronous using fibers: https://gist.github.com/20e49e0282783c4f5603 I've been using it with MongoMapper.
It would be great to support connecting to replica sets. http://www.mongodb.org/display/DOCS/Connecting+Drivers+to+Replica+Sets