You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm describing the issue based on 69d91a9 revision.
The problem is in mongotor/database.py:65 (line) - in the function Database.init.
In this function it construct Node to wrap mongodb connection.
The connections are started in database.py:65 - which in the end calls connect on each node. The connect method gets callback which sets Database._initialized value.
But the callback is called at the end of node.connect method which is asynchronous - in the middle of this method is an asynchronous call to database.
So callback will be called in the next event loop flow. But this will not come since Database.connect fires the while loop which block the entire IOLoop (throught self._initialized field) - mongotor/database.py:65
If you want we can work on this together. Just type me some message.
The text was updated successfully, but these errors were encountered:
The example from homepage http://marcelnicolay.github.com/mongotor/ doesn't works.
The full application based on this example is presented on: https://gist.github.com/4540679.
I'm describing the issue based on 69d91a9 revision.
The problem is in mongotor/database.py:65 (line) - in the function Database.init.
In this function it construct
Node
to wrap mongodb connection.The connections are started in database.py:65 - which in the end calls
connect
on eachnode
. Theconnect
method getscallback
which setsDatabase._initialized
value.But the callback is called at the end of
node.connect
method which is asynchronous - in the middle of this method is an asynchronous call to database.So
callback
will be called in the next event loop flow. But this will not come sinceDatabase.connect
fires the while loop which block the entire IOLoop (throughtself._initialized
field) - mongotor/database.py:65If you want we can work on this together. Just type me some message.
The text was updated successfully, but these errors were encountered: