Commit 7f55dec4 authored by Constantin Pohl's avatar Constantin Pohl
Browse files

Better fix for SimpleWeb

parent bb385587
......@@ -59,7 +59,7 @@ include_directories("${THIRD_PARTY_DIR}/fmt")
# the SimpleWeb library
download_project(PROJ SimpleWeb
GIT_REPOSITORY https://github.com/eidheim/Simple-Web-Server.git
GIT_TAG v2.1.1
GIT_TAG master
UPDATE_DISCONNECTED 1
QUIET
)
......
......@@ -50,7 +50,9 @@ void RESTSource::createHttpServer(unsigned int port, unsigned short numThreads)
// TODO: we should create one HTTPServer per port
std::call_once( RESTSource::onlyOne,
[] (int p, unsigned short nt) {
RESTSource::server.reset(new HttpServer(p, nt));
RESTSource::server.reset(new HttpServer());
RESTSource::server->config.port = p;
RESTSource::server->config.thread_pool_size = nt;
std::cout << "RESTSource: HTTPServer created for port " << p << std::endl;
}, port, numThreads);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment