mongodb/mongo-php-driver — pull request #55 by derickr (2012-03-19 12:13:00+00:00)
Title: Fix for PHP-329: Added two ini settings to control ping and is_master intervals.

I've done some research and the current behaviour, although unexpected, is not quite a bug. We have a 5 and 60 second timeout for running ping/is_master to prevent the secondaries not from being slammed with pings/is_master calls when a primary goes down. I've created a patch that introduces two settings:

mongo.ping_interval

and

mongo.is_master_interval

If you set both of those to 1 then the driver sees within a second that something was wrong.