MG-RAST/Shock

Need to modify mongo timeouts.

Closed this issue · 1 comments

Shock should try connecting to mongo several times (with 10 second timeout) at startup time. If it continues to fail, Shock should exit with error. If it is successful, Shock should start a new new mongo connection with a longer timeout (~5 minutes). This is necessary because the mgo library does not distinguish between a dial timeout and a rw timeout.

This is added with version 0.9.13.