From a4e932a7f25ad3ec636cc42690ba3c36990d0759 Mon Sep 17 00:00:00 2001 From: Lukas Krecan Date: Thu, 9 Feb 2012 20:52:32 +0100 Subject: [PATCH] Timeout for replica set reading set to 20 seconds --- db/repl.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/db/repl.cpp b/db/repl.cpp index 5edf0c2..0392f9d 100644 --- a/db/repl.cpp +++ b/db/repl.cpp @@ -1115,7 +1115,7 @@ namespace mongo { bool OplogReader::commonConnect(const string& hostName) { if( conn() == 0 ) { - _conn = shared_ptr(new DBClientConnection( false, 0, 0 /* tcp timeout */)); + _conn = shared_ptr(new DBClientConnection( false, 0, 20 /* tcp timeout */)); string errmsg; ReplInfo r("trying to connect to sync source"); if ( !_conn->connect(hostName.c_str(), errmsg) || -- 1.7.4.1