stijnsanders/TMongoWire — pull request #7 by compiled (2012-04-26 05:17:54+00:00)
Title: Added ping command to TMongoWire

Hi,

In my search for checking if the MongoDB connection is still alive I added the ping command which I found inside the Ruby driver documentation (http://api.mongodb.org/ruby/current/Mongo/Connection.html).

It is a command which returns even if the server is in lock. I chose to handle any exceptions TMongoWire throws inside the method, so it returns false in those cases.

Kind regards,

Fred Oranje