File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -336,6 +336,13 @@ class cluster : public std::enable_shared_from_this<cluster>
336
336
template <typename Handler>
337
337
void do_open (Handler&& handler)
338
338
{
339
+ // Warn users if idle_http_connection_timeout is too close to server idle timeouts
340
+ if (origin_.options ().idle_http_connection_timeout > std::chrono::milliseconds (4'500 )) {
341
+ CB_LOG_INFO (" [{}]: The SDK may produce trivial warnings due to the idle HTTP connection timeout being set above the idle"
342
+ " timeout of various services" ,
343
+ id_);
344
+ }
345
+
339
346
// Warn users if they attempt to use Capella without TLS being enabled.
340
347
bool has_capella_host = false ;
341
348
{
Original file line number Diff line number Diff line change @@ -40,5 +40,5 @@ constexpr std::chrono::milliseconds tcp_keep_alive_interval{ 60'000 };
40
40
constexpr std::chrono::milliseconds config_poll_interval{ 2'500 };
41
41
constexpr std::chrono::milliseconds config_poll_floor{ 50 };
42
42
constexpr std::chrono::milliseconds config_idle_redial_timeout{ 5 * 60'000 };
43
- constexpr std::chrono::milliseconds idle_http_connection_timeout{ 4'500 };
43
+ constexpr std::chrono::milliseconds idle_http_connection_timeout{ 1'000 };
44
44
} // namespace couchbase::core::timeout_defaults
You can’t perform that action at this time.
0 commit comments