diff options
| author | Stefan Boberg <[email protected]> | 2021-09-11 17:29:08 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-11 17:29:08 +0200 |
| commit | 84713500bf761b987fa0f0f4bcfa392bd7cda8a9 (patch) | |
| tree | 7ad24e77c1344f7b838a70eefbc7b956c523c450 /zenhttp/httpserver.cpp | |
| parent | Tweaked back default to http.sys (diff) | |
| download | zen-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.cpp | 2 |
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 |