Closed tahajahangir closed 10 years ago
Hi, thanks for your time fixing this problem.
I tried to run the tests in your branch but they didn't pass. Could you fix the problems? I use the make tests command.
I rebased and modified this pull requests and it now depends on pull #43 (travis build)
I modified one test, and now, all tests are passing
There is an incorrect behavior in mongotor: creating (and connecting to) a new Connection
is synchronous. Because of this, when sending message to an unavailable node (with send_message
) the function raises an exception synchronously. The old test relies on this synchronous behavior. I modified it to use stop/wait functions to wait for asynchronous operation.
I (probably) will try to switch to async connects in another pull request.
If we call
get_node
twice before starting IOLoop,_config_nodes
will be called twice, and therefore subsequent_config_nodes
will be called twice every 30-seconds.This pull request, also three trivial fix commits.