mongodb/mongo-c-driver — pull request #16 by gdi (2011-12-09 13:30:18+00:00)
Title: Connection timeouts, read/write timeouts, set_slave_okay() on cursor, additional error codes, etc.

-Sets socket to non-blocking to connect(), using conn_timeout_ms for timeout, returns socket to blocking once socket is connected.
-Implemented mongo_set_connect_timeout() to update conn_timeout_ms.
-Updated the mongo_connect() so it doesn't overwrite op_timeout_ms and conn_timeout_ms when it calls mongo_init().
-Added MONGO_CONN_TIMEOUT, MONGO_READ_TIMEOUT, and MONGO_WRITE_TIMEOUT to mongo error codes.
-Uses select() to timeout socket reads and writes using op_timeout_ms.
-Added set_slave_okay(cursor) to allow querying replicas.
-Few other random changes.