From eccf5032895cba746e9aa014c994d412c055106b Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 20 Apr 2013 22:27:47 +0200 Subject: leveldb: number of threads=10 --- datastore-leveldb/src/server.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'datastore-leveldb/src') diff --git a/datastore-leveldb/src/server.cpp b/datastore-leveldb/src/server.cpp index 4776f33..1337466 100644 --- a/datastore-leveldb/src/server.cpp +++ b/datastore-leveldb/src/server.cpp @@ -21,10 +21,10 @@ int begin_request_handler(struct mg_connection *conn) { const struct mg_request_info *request_info = mg_get_request_info(conn); + std::cout << request_info->request_method << " " + << request_info->uri << std::endl; for (auto item = web_handler.begin(); item != web_handler.end(); ++item) { if (boost::regex_match(request_info->uri, match, (*item).first)) { - std::cout << request_info->request_method << " " - << request_info->uri << std::endl; (*item).second(match, conn); return 1; } @@ -45,6 +45,7 @@ void sigint_handler(int s) { int main(int argc, char **argv) { struct mg_callbacks callbacks; const char *options[] = { + "num_threads", "10", "listening_ports", "8080", "document_root", "wwwroot", NULL}; -- cgit v1.2.1