summaryrefslogtreecommitdiff
path: root/src/mongo/executor/connection_pool.cpp
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2016-11-16 11:06:49 -0500
committerJason Carey <jcarey@argv.me>2016-11-16 11:15:43 -0500
commit009580ad490190ba33d1c6253ebd8d91808923e4 (patch)
treee445fa9f5f8f4c0e39f9f8996ad154617832a05b /src/mongo/executor/connection_pool.cpp
parent491879a73d9a6304c9b3824193a3a29d09039b15 (diff)
downloadmongo-91d6e1e810538a01f23fed69d8e383021192c404.tar.gz
SERVER-25027 Configurable connpool in mongosr3.2.11
Export server parameters for sharding connection pool Not cherry-picked
Diffstat (limited to 'src/mongo/executor/connection_pool.cpp')
-rw-r--r--src/mongo/executor/connection_pool.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/executor/connection_pool.cpp b/src/mongo/executor/connection_pool.cpp
index d194bdd8288..ee243789587 100644
--- a/src/mongo/executor/connection_pool.cpp
+++ b/src/mongo/executor/connection_pool.cpp
@@ -166,11 +166,11 @@ private:
State _state;
};
-const Milliseconds ConnectionPool::kDefaultHostTimeout = Milliseconds(300000); // 5mins
+const Milliseconds ConnectionPool::kDefaultHostTimeout = Minutes(5);
size_t const ConnectionPool::kDefaultMaxConns = std::numeric_limits<size_t>::max();
size_t const ConnectionPool::kDefaultMinConns = 1;
-const Milliseconds ConnectionPool::kDefaultRefreshRequirement = Milliseconds(60000); // 1min
-const Milliseconds ConnectionPool::kDefaultRefreshTimeout = Milliseconds(20000); // 20secs
+const Milliseconds ConnectionPool::kDefaultRefreshRequirement = Minutes(1);
+const Milliseconds ConnectionPool::kDefaultRefreshTimeout = Seconds(20);
const Status ConnectionPool::kConnectionStateUnknown =
Status(ErrorCodes::InternalError, "Connection is in an unknown state");