diff options
| author | Per Larsson <[email protected]> | 2021-11-16 21:07:17 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-11-16 21:07:17 +0100 |
| commit | 1fda861670f67b3220fc661e7975f160f99e6aed (patch) | |
| tree | a8fcdfc18d2e3e4b79bb42ef1d0fc61aff6b9dbf /zenserver/config.cpp | |
| parent | Merge branch 'main' of https://github.com/EpicGames/zen (diff) | |
| download | zen-1fda861670f67b3220fc661e7975f160f99e6aed.tar.xz zen-1fda861670f67b3220fc661e7975f160f99e6aed.zip | |
Added upstream connect/transfer timeout options.
Diffstat (limited to 'zenserver/config.cpp')
| -rw-r--r-- | zenserver/config.cpp | 16 |
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); |