diff options
author | Eric Milkie <milkie@10gen.com> | 2012-05-15 13:22:20 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2012-05-15 13:32:46 -0400 |
commit | dbd87d09fd95c10d37bcc8b875e7770043fe219d (patch) | |
tree | 5b6366542a6f32d422c34f2f54904d3ac15478b0 /db | |
parent | ee64e77c32287a174ceb4e51c626b21ce80ccc85 (diff) | |
download | mongo-dbd87d09fd95c10d37bcc8b875e7770043fe219d.tar.gz |
SERVER-4758 raising timeout to 10 minutes for safety
Diffstat (limited to 'db')
-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 5edf0c2a4eb..8dcdd131e7f 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) || |