summaryrefslogtreecommitdiff
path: root/src/mongo/tools/mongobridge_options.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-03-21 14:01:44 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-03-21 14:25:00 -0400
commitbfebf440342a2266f8febec161334a700dc713af (patch)
tree30f8ff7861feabc23c622f52a68a0bc3704d40c3 /src/mongo/tools/mongobridge_options.h
parent6849110b99b4fc4e9fd162ac897e1a8e5180e72e (diff)
downloadmongo-bfebf440342a2266f8febec161334a700dc713af.tar.gz
SERVER-13306 mongobridge should not try forever to connect to dead
destinations. The connect timeout is set to 15 seconds of retrying, after which the connection to the client will be terminated. Also added some extra logging and diagnostics so it is easier to analyse test failures in the future.
Diffstat (limited to 'src/mongo/tools/mongobridge_options.h')
-rw-r--r--src/mongo/tools/mongobridge_options.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/tools/mongobridge_options.h b/src/mongo/tools/mongobridge_options.h
index 58e5685ab98..181bd273db4 100644
--- a/src/mongo/tools/mongobridge_options.h
+++ b/src/mongo/tools/mongobridge_options.h
@@ -46,9 +46,10 @@ namespace mongo {
struct MongoBridgeGlobalParams {
int port;
int delay;
+ int connectTimeoutSec;
string destUri;
- MongoBridgeGlobalParams() : port(0), delay(0) { }
+ MongoBridgeGlobalParams() : port(0), delay(0), connectTimeoutSec(15) {}
};
extern MongoBridgeGlobalParams mongoBridgeGlobalParams;