diff options
| author | Martin Ridgers <[email protected]> | 2021-11-17 08:30:40 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-11-17 08:30:40 +0100 |
| commit | 5e6b243d7fee946cc8126e54ffaee050fce7433d (patch) | |
| tree | 4a953b941e794c9fe978987696a1acf50fed5858 /zenserver/config.cpp | |
| parent | Hooked up zenserver:main() to ZenEntryPoint::Run() on POSIX (diff) | |
| parent | Format fix. (diff) | |
| download | zen-5e6b243d7fee946cc8126e54ffaee050fce7433d.tar.xz zen-5e6b243d7fee946cc8126e54ffaee050fce7433d.zip | |
Merged main
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 94226ef26..7afac3406 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); |