commit 61456e4b13291054afcf420952e2ca4c14783894
parent 00af4350bd4e5046e9ba03e144f815af7be50106
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 30 Mar 2013 23:52:59 +0000
-towards a nicer demo
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/examples/demo.c b/src/examples/demo.c
@@ -21,6 +21,11 @@
* @file demo.c
* @brief complex demonstration site: upload, index, download
* @author Christian Grothoff
+ *
+ * TODO:
+ * - even with LARGE memory pool & buffers, uploads proceed at 5000 bytes/call (ugh)
+ * - should have a slightly more ambitious upload form & file listing (structure!)
+ * - may want to add MIME-types to replies
*/
#include "platform.h"
#include <microhttpd.h>
@@ -457,6 +462,7 @@ main (int argc, char *const *argv)
port,
NULL, NULL,
&generate_page, NULL,
+ MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t) (1024 * 1024),
MHD_OPTION_THREAD_POOL_SIZE, (unsigned int) 8,
MHD_OPTION_NOTIFY_COMPLETED, &response_completed_callback, NULL,
MHD_OPTION_END);