aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/httpserver.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-12-05 13:40:08 +0100
committerGitHub Enterprise <[email protected]>2025-12-05 13:40:08 +0100
commit4c0e72df77ea663a92818de225735bc171074486 (patch)
tree0671f41f13de2b4a0bc12ee8fc31bd38cd6d4122 /src/zenhttp/httpserver.cpp
parentcatch exception leaks in windows thread pool (#677) (diff)
downloadzen-4c0e72df77ea663a92818de225735bc171074486.tar.xz
zen-4c0e72df77ea663a92818de225735bc171074486.zip
implement --dedicated option on asio http server (#679)
* implement --dedicated option on asio http server
Diffstat (limited to 'src/zenhttp/httpserver.cpp')
-rw-r--r--src/zenhttp/httpserver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zenhttp/httpserver.cpp b/src/zenhttp/httpserver.cpp
index b28682375..1357f1b9b 100644
--- a/src/zenhttp/httpserver.cpp
+++ b/src/zenhttp/httpserver.cpp
@@ -1012,7 +1012,9 @@ CreateHttpServerClass(const std::string_view ServerClass, const HttpServerConfig
if (ServerClass == "asio"sv)
{
ZEN_INFO("using asio HTTP server implementation")
- return CreateHttpAsioServer(Config.ForceLoopback, Config.ThreadCount);
+ return CreateHttpAsioServer(AsioConfig{.ThreadCount = Config.ThreadCount,
+ .ForceLoopback = Config.ForceLoopback,
+ .IsDedicatedServer = Config.IsDedicatedServer});
}
#if ZEN_WITH_HTTPSYS
else if (ServerClass == "httpsys"sv)