diff --git a/conf/server.conf b/conf/server.conf index 8834faa..c78ab61 100755 --- a/conf/server.conf +++ b/conf/server.conf @@ -50,7 +50,7 @@ static_pre=downloadfileauth|upload method_pre= ;api/dev/hostcors method_after= isuse_php=0 -rewrite_php=/Users/hzq/paozhu/www/default|index.php +rewrite_php=/Users/hzq/www/mpdftest|index.php fastcgi_host=127.0.0.1 ;/run/php/php8.1-fpm.sock fastcgi_port=9000 upload_max_size=16777216 diff --git a/vendor/httpserver/src/server.cpp b/vendor/httpserver/src/server.cpp index 6c0918a..a315ba4 100755 --- a/vendor/httpserver/src/server.cpp +++ b/vendor/httpserver/src/server.cpp @@ -3893,6 +3893,10 @@ void httpserver::run(const std::string &sysconfpath) _initwebsocketmethodregto(wsreg); total_count = sysconfigpath.get_co_thread_num(); + if(total_count < std::thread::hardware_concurrency()) + { + total_count = std::thread::hardware_concurrency(); + } asio::io_context::work worker(io_context); for (std::size_t i = 0; i < total_count; ++i) {