diff options
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r-- | src/daemon/daemon.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 8a602df4..e52ac940 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c | |||
@@ -44,8 +44,6 @@ | |||
44 | 44 | ||
45 | #define MHD_MAX_CONNECTIONS FD_SETSIZE -4 | 45 | #define MHD_MAX_CONNECTIONS FD_SETSIZE -4 |
46 | 46 | ||
47 | #define MHD_MAX_BUF_SIZE 2048 | ||
48 | |||
49 | 47 | ||
50 | /** | 48 | /** |
51 | * fprintf-like helper function for logging debug | 49 | * fprintf-like helper function for logging debug |
@@ -490,6 +488,10 @@ MHD_start_daemon(unsigned int options, | |||
490 | retVal->dh = dh; | 488 | retVal->dh = dh; |
491 | retVal->dh_cls = dh_cls; | 489 | retVal->dh_cls = dh_cls; |
492 | retVal->socket_fd = socket_fd; | 490 | retVal->socket_fd = socket_fd; |
491 | retVal->default_handler.dh = dh; | ||
492 | retVal->default_handler.dh_cls = dh_cls; | ||
493 | retVal->default_henader.uri_prefix = ""; | ||
494 | retVal->default_handler.next = NULL; | ||
493 | if ( ( (0 != (options & MHD_USE_THREAD_PER_CONNECTION)) || | 495 | if ( ( (0 != (options & MHD_USE_THREAD_PER_CONNECTION)) || |
494 | (0 != (options & MHD_USE_SELECT_INTERNALLY)) ) && | 496 | (0 != (options & MHD_USE_SELECT_INTERNALLY)) ) && |
495 | (0 != pthread_create(&daemon->pid, | 497 | (0 != pthread_create(&daemon->pid, |