aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpserver.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-11 17:29:08 +0200
committerStefan Boberg <[email protected]>2021-09-11 17:29:08 +0200
commit84713500bf761b987fa0f0f4bcfa392bd7cda8a9 (patch)
tree7ad24e77c1344f7b838a70eefbc7b956c523c450 /zenhttp/httpserver.cpp
parentTweaked back default to http.sys (diff)
downloadzen-84713500bf761b987fa0f0f4bcfa392bd7cda8a9.tar.xz
zen-84713500bf761b987fa0f0f4bcfa392bd7cda8a9.zip
Changed worker thread defaults to reflect available hardware concurrency
Diffstat (limited to 'zenhttp/httpserver.cpp')
-rw-r--r--zenhttp/httpserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenhttp/httpserver.cpp b/zenhttp/httpserver.cpp
index 1012a16d3..b11feacd5 100644
--- a/zenhttp/httpserver.cpp
+++ b/zenhttp/httpserver.cpp
@@ -387,7 +387,7 @@ CreateHttpServer()
#if 0
return new HttpUwsServer;
#elif ZEN_WITH_HTTPSYS
- return new HttpSysServer{32};
+ return new HttpSysServer{std::thread::hardware_concurrency()};
#else
return new HttpNullServer;
#endif