summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-02-16 10:55:09 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2012-02-16 10:55:09 +0100
commitbedfbd43af19a4b5798406d9b6736f2e79b3bebf (patch)
treecaba136b74aa8e415ab82d4c2d55fd4972a53239 /server
parentef0f64024a6ceec6d7a6411bcfaa614f94b03130 (diff)
Re-enable threads, they were not the culprit.
Diffstat (limited to 'server')
-rw-r--r--server/src/httpd.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/httpd.cc b/server/src/httpd.cc
index 579743f..1c0575a 100644
--- a/server/src/httpd.cc
+++ b/server/src/httpd.cc
@@ -181,7 +181,7 @@ Httpd::~Httpd()
void Httpd::listen(unsigned short int port,
unsigned int cn_limit, unsigned int cn_timeout)
{
- int flags = MHD_USE_DEBUG | MHD_USE_SELECT_INTERNALLY;//MHD_USE_THREAD_PER_CONNECTION;
+ int flags = MHD_USE_DEBUG | MHD_USE_THREAD_PER_CONNECTION;
d = MHD_start_daemon(flags, port, NULL, NULL,
request_handler, this,
@@ -201,7 +201,7 @@ void Httpd::listen_ssl(unsigned short int port,
std::string key, std::string cert,
unsigned int cn_limit, unsigned int cn_timeout)
{
- int flags = MHD_USE_DEBUG | MHD_USE_SELECT_INTERNALLY | MHD_USE_SSL;//MHD_USE_THREAD_PER_CONNECTION;
+ int flags = MHD_USE_DEBUG | MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL;
d_ssl = MHD_start_daemon(flags, port, NULL, NULL,
request_handler, this,