summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-12-06 15:13:42 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2011-12-06 15:13:42 +0100
commit438d0cc544cc7c51bdace97cdc64bb009963080c (patch)
tree1e70a5b8964e817098b72b9830c0aca8d3d33baf
parent8f00317567dab4c825a0eca76a9cae7951edd11f (diff)
Rollback microhttpd using one thread pr. connection. This feature must be introduced seperately after a stable period.
-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 1c0575a..d70e79e 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_THREAD_PER_CONNECTION;
+ int flags = MHD_USE_DEBUG | MHD_USE_SELECT_INTERNALLY;
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_THREAD_PER_CONNECTION | MHD_USE_SSL;
+ int flags = MHD_USE_DEBUG | MHD_USE_SELECT_INTERNALLY | MHD_USE_SSL;
d_ssl = MHD_start_daemon(flags, port, NULL, NULL,
request_handler, this,