aboutsummaryrefslogtreecommitdiff
path: root/zenserver/config.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-11-16 21:07:17 +0100
committerPer Larsson <[email protected]>2021-11-16 21:07:17 +0100
commit1fda861670f67b3220fc661e7975f160f99e6aed (patch)
treea8fcdfc18d2e3e4b79bb42ef1d0fc61aff6b9dbf /zenserver/config.cpp
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadzen-1fda861670f67b3220fc661e7975f160f99e6aed.tar.xz
zen-1fda861670f67b3220fc661e7975f160f99e6aed.zip
Added upstream connect/transfer timeout options.
Diffstat (limited to 'zenserver/config.cpp')
-rw-r--r--zenserver/config.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/zenserver/config.cpp b/zenserver/config.cpp
index f512f8015..3e85daa9e 100644
--- a/zenserver/config.cpp
+++ b/zenserver/config.cpp
@@ -243,7 +243,7 @@ ParseGlobalCliOptions(int argc, char* argv[], ZenServerOptions& GlobalOptions, Z
"",
"upstream-thread-count",
"Number of threads used for upstream procsssing",
- cxxopts::value<int>(ServiceConfig.UpstreamCacheConfig.UpstreamThreadCount)->default_value("4"),
+ cxxopts::value<int32_t>(ServiceConfig.UpstreamCacheConfig.UpstreamThreadCount)->default_value("4"),
"");
options.add_option("cache",
@@ -253,6 +253,20 @@ ParseGlobalCliOptions(int argc, char* argv[], ZenServerOptions& GlobalOptions, Z
cxxopts::value<bool>(ServiceConfig.UpstreamCacheConfig.StatsEnabled)->default_value("false"),
"");
+ options.add_option("cache",
+ "",
+ "upstream-connect-timeout-ms",
+ "Connect timeout in millisecond(s). Default 5000 ms.",
+ cxxopts::value<int32_t>(ServiceConfig.UpstreamCacheConfig.ConnectTimeoutMilliseconds)->default_value("5000"),
+ "");
+
+ options.add_option("cache",
+ "",
+ "upstream-timeout-ms",
+ "Timeout in millisecond(s). Default 0 ms",
+ cxxopts::value<int32_t>(ServiceConfig.UpstreamCacheConfig.TimeoutMilliseconds)->default_value("0"),
+ "");
+
try
{
auto result = options.parse(argc, argv);