diff options
Diffstat (limited to 'db/repl.cpp')
-rw-r--r-- | db/repl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/repl.cpp b/db/repl.cpp index 5edf0c2..8dcdd13 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<DBClientConnection>(new DBClientConnection( false, 0, 0 /* tcp timeout */)); + _conn = shared_ptr<DBClientConnection>(new DBClientConnection( false, 0, 60*10 /* tcp timeout */)); string errmsg; ReplInfo r("trying to connect to sync source"); if ( !_conn->connect(hostName.c_str(), errmsg) || |